Add GET verb to static handler
This commit is contained in:
parent
ddc9e51831
commit
a6be73765a
@ -22,7 +22,7 @@ func Get(app *app.App) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
staticHandler := http.FileServer(http.FS(staticFS))
|
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")
|
slog.Info("serving static files from embedded file system /static")
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
|
Loading…
Reference in New Issue
Block a user