diff --git a/server.js b/server.js index f605d96..2840db6 100644 --- a/server.js +++ b/server.js @@ -84,6 +84,11 @@ app.use((req, res, next) => { next(); }); +/** + * Serve static public dir + */ +app.use(express.static(`${__dirname}/public`)); + /** * Initialize OIDC */ @@ -106,11 +111,6 @@ app.use(cookieParser()); */ app.use(flashMessage); -/** - * Serve static public dir - */ -app.use(express.static(`${__dirname}/public`)); - /** * Configure routers */