aboutsummaryrefslogtreecommitdiff
path: root/resources.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-01 22:20:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-01 22:20:55 +0800
commitfcf927a1e3c3b13835c0c021f0aefe3a1eca72c5 (patch)
treea10cee3ba46d194c6c034836f761049337590ea2 /resources.go
parentAdjust head (diff)
downloadforge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.gz
forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.tar.zst
forge-fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5.zip
More segments fixes
Diffstat (limited to 'resources.go')
-rw-r--r--resources.go6
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)))
}