diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:20:55 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:20:55 +0800 |
commit | fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5 (patch) | |
tree | a10cee3ba46d194c6c034836f761049337590ea2 /resources.go | |
parent | Adjust head (diff) | |
download | forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.gz forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.zst forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.zip |
More segments fixes
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources.go b/resources.go index 567976d..9d36ddf 100644 --- a/resources.go +++ b/resources.go @@ -17,7 +17,7 @@ import ( var sourceFS embed.FS var sourceHandler = http.StripPrefix( - "/:/source/", + "/-/source/", http.FileServer(http.FS(sourceFS)), ) @@ -80,10 +80,10 @@ func init() { if err != nil { panic(err) } - staticHandler = http.StripPrefix("/:/static/", http.FileServer(http.FS(staticFS))) + staticHandler = http.StripPrefix("/-/static/", http.FileServer(http.FS(staticFS))) manFS, err := fs.Sub(resourcesFS, "man") if err != nil { panic(err) } - manHandler = http.StripPrefix("/:/man/", http.FileServer(http.FS(manFS))) + manHandler = http.StripPrefix("/-/man/", http.FileServer(http.FS(manFS))) } |