added alpine ajax - started conversion of the proj

This commit is contained in:
Simon Martens
2025-05-28 23:14:01 +02:00
parent fb8ac1b723
commit 168a733af1
24 changed files with 1412 additions and 1451 deletions

View File

@@ -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))