Still refactoring, better _frontend and _public structuring
This commit is contained in:
+3
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user