This commit is contained in:
lbenedar
2026-03-05 18:11:34 +03:00
parent b644c0384e
commit 3c7cb22298
3 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ func (app *application) routes() http.Handler {
})
fileServer := http.FileServer(http.Dir("./ui/static/"))
router.Handler(http.MethodGet, "/static/", http.StripPrefix("/static", fileServer))
router.Handler(http.MethodGet, "/static/*filepath", http.StripPrefix("/static", fileServer))
dynamic := alice.New(app.sessionManager.LoadAndSave)