Add GET verb to static handler

This commit is contained in:
max 2024-02-14 13:16:52 -06:00
parent ddc9e51831
commit a6be73765a

View File

@ -22,7 +22,7 @@ func Get(app *app.App) {
return
}
staticHandler := http.FileServer(http.FS(staticFS))
http.Handle("/static/", http.StripPrefix("/static/", staticHandler))
http.Handle("GET /static/", http.StripPrefix("/static/", staticHandler))
slog.Info("serving static files from embedded file system /static")
// Pages