Still refactoring, better _frontend and _public structuring

This commit is contained in:
2022-08-18 18:11:51 +02:00
parent 92cee16cc8
commit 227619e5eb
24 changed files with 1006 additions and 1398 deletions
+3 -2
View File
@@ -51,8 +51,9 @@ func routes(h handler.Service, r fiber.Router) {
},
}))
// Serve content statically from "./public", mounted on the "/public/" route
r.Static("/public/", "./public")
// Serve generated css and js files and the static "./_public" folder
r.Static("/public/", "./_frontend/out")
r.Static("/public/", "./_public")
// Process all request and add user to the request context if there is a session cookie
r.Use(UserMiddleware(h))