add static routes including unpoly/ dasyui/ tailwind

This commit is contained in:
2025-01-11 20:27:32 +01:00
parent ddacf8e5aa
commit 1f421163cd
8 changed files with 122 additions and 82 deletions

View File

@@ -25,8 +25,7 @@ func (app *App) Routes() http.Handler {
mux.Handle("POST /up/search", http.HandlerFunc(app.UpSearch))
// serve files from the "static" directory
fs := http.FileServer(http.Dir("assets/static"))
mux.Handle("GET /static/", http.StripPrefix("/", fs))
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./assets/static"))))
return mux
}