Skip to content

Commit f24c508

Browse files
committed
feat: add get jory-map
1 parent 3a81058 commit f24c508

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/auth/IAMConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ const relevantOrganisations = RELEVANT_ORGANISATION_CODES.concat(
602602
)
603603

604604
export {
605+
joryMap,
605606
isSuperAdminIam,
606607
isAdminIam,
607608
isOpenUniIam,

src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
relevantIAMs,
1414
relevantOrganisations,
1515
iamToFaculty,
16+
joryMap,
1617
} from './auth/IAMConfig'
1718
import getIAMRights from './auth/IAMRights'
1819
import { hasFullSisuAccess } from './auth/sisuRoles'
@@ -137,6 +138,10 @@ app.post('/user-organisations', async (req, res) => {
137138
return res.send(Object.values(faculties))
138139
})
139140

141+
app.get('/jory-map', async (_req, res) => {
142+
return res.send(joryMap)
143+
})
144+
140145
app.get('/:id', async (req, res) => {
141146
const { id } = req.params
142147

@@ -166,8 +171,7 @@ connectToDatabase()
166171

167172
const server = app.listen(PORT, () => {
168173
logger.info(
169-
`Started on port ${PORT} with environment ${
170-
inProduction ? 'production' : 'development'
174+
`Started on port ${PORT} with environment ${inProduction ? 'production' : 'development'
171175
}`,
172176
)
173177
})

0 commit comments

Comments
 (0)