diff --git a/server-uinnlogget/src/server.ts b/server-uinnlogget/src/server.ts index 37a4944686..7440e264c6 100644 --- a/server-uinnlogget/src/server.ts +++ b/server-uinnlogget/src/server.ts @@ -5,8 +5,8 @@ import { logger, serverConfig, setupActuators, + setupAndServeHtml, setupServerDefaults, - setupAndServeHtml } from '@navikt/fp-server-utils'; import { configureReverseProxyApi } from './reverseProxy'; @@ -17,10 +17,13 @@ setupServerDefaults(server); setupActuators(server); const router = express.Router(); +const publicRouter = express.Router(); // Logging i json format server.use(logger.morganMiddleware); +publicRouter.use(express.static('./public', { index: false })); +server.use(serverConfig.app.publicPath, publicRouter); configureReverseProxyApi(router); // Catch all route, må være sist