From fcf927a1e3c3b13835c0c021f0aefe3a1eca72c5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 1 Apr 2025 22:20:55 +0800 Subject: More segments fixes --- resources.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources.go') 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))) } -- cgit v1.2.3