aboutsummaryrefslogtreecommitdiff
path: root/xess
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-09-07 12:14:59 -0400
committerXe Iaso <me@xeiaso.net>2024-09-07 12:14:59 -0400
commit65c9fe6433594ba22f8300d5f4873d22ea37b37d (patch)
treeab533eccfea4b7564d94913e80c61a47b81314b5 /xess
parent43e9437937d9c1fc4ecc5e66bba92419bf2d4ada (diff)
downloadx-65c9fe6433594ba22f8300d5f4873d22ea37b37d.tar.xz
x-65c9fe6433594ba22f8300d5f4873d22ea37b37d.zip
xess: fix mount path
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'xess')
-rw-r--r--xess/xess.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/xess/xess.go b/xess/xess.go
index d9d71bf..5b89f6b 100644
--- a/xess/xess.go
+++ b/xess/xess.go
@@ -6,12 +6,14 @@ package xess
import (
"embed"
"net/http"
+
+ "within.website/x/internal"
)
//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
var (
- //go:embed xess.css
+ //go:embed xess.css static
Static embed.FS
)
@@ -22,5 +24,5 @@ func init() {
const URL = "/.within.website/x/xess/xess.css"
func Mount(mux *http.ServeMux) {
- mux.Handle("/.within.website/x/xess/", http.StripPrefix("/.within.website/x/xess/", http.FileServerFS(Static)))
+ mux.Handle("/.within.website/x/xess/", internal.UnchangingCache(http.StripPrefix("/.within.website/x/xess/", http.FileServerFS(Static))))
}