diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-09 02:16:39 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-09 02:16:39 +0800 |
commit | f34697bc9d6c9e25ca04b36f1782de90aa31571f (patch) | |
tree | 3822bd1b3d41cc7a4843ad33b699cd93e42ca742 /resources.go | |
parent | *: Add basic repo home with a README and recent commits display (diff) | |
download | forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.tar.gz forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.tar.zst forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.zip |
{main,resources}.go: Serve static/ properly
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)), |