From de4448e366e937a96544e19c80b928c71ef803d3 Mon Sep 17 00:00:00 2001 From: Gurnank Date: Sat, 12 Oct 2024 10:47:47 +0100 Subject: [PATCH] MAP-1670 move getting fecomponents to after authorisationMiddleware --- server/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) => {