diff --git a/server/app.ts b/server/app.ts index 7947e3f8..ef992068 100755 --- a/server/app.ts +++ b/server/app.ts @@ -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) => {