Skip to content

Commit

Permalink
MAP-1670 move getting fecomponents to after authorisationMiddleware (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GurnankCheema authored Oct 14, 2024
1 parent 3535f61 commit 3abb266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,10 @@ export default function createApp(services: Services): Express {

app.use(populateCurrentUser(services.userService))

app.get('*', getFrontendComponents(services.feComponentsService))

app.use(unauthenticatedRoutes(services))
app.use(authorisationMiddleware)

app.get('*', getFrontendComponents(services.feComponentsService))
app.use(createRouter(authenticationMiddleware, services))

app.use((req, res, next) => {
Expand Down

0 comments on commit 3abb266

Please sign in to comment.