mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 01:05:32 +00:00
added alpine ajax - started conversion of the proj
This commit is contained in:
@@ -168,7 +168,8 @@ func (app *App) setWatchers(engine *templating.Engine) {
|
||||
|
||||
func (app *App) bindPages(engine *templating.Engine) ServeFunc {
|
||||
return func(e *core.ServeEvent) error {
|
||||
e.Router.GET("/assets/{path...}", apis.Static(views.StaticFS, true))
|
||||
r := e.Router.GET("/assets/{path...}", apis.Static(views.StaticFS, true))
|
||||
r.Bind(apis.Gzip())
|
||||
// INFO: Global middleware to get the authenticated user:
|
||||
e.Router.BindFunc(middleware.Authenticated(e.App))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user