From f34697bc9d6c9e25ca04b36f1782de90aa31571f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 9 Feb 2025 02:16:39 +0800 Subject: {main,resources}.go: Serve static/ properly --- resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources.go') diff --git a/resources.go b/resources.go index 737a079..b7ccca6 100644 --- a/resources.go +++ b/resources.go @@ -22,7 +22,7 @@ func serve_static() (err error) { if err != nil { return err } - http.Handle("/static/", + http.Handle("/static/{name}", http.StripPrefix( "/static/", http.FileServer(http.FS(static_fs)), -- cgit v1.2.3