From a6be73765ad876931c1a7597e93b792ca5de1bab Mon Sep 17 00:00:00 2001 From: max Date: Wed, 14 Feb 2024 13:16:52 -0600 Subject: [PATCH] Add GET verb to static handler --- routes/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/get.go b/routes/get.go index 6836800..814dd7d 100644 --- a/routes/get.go +++ b/routes/get.go @@ -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