Skip to content

Commit

Permalink
xess: fix mount path
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Sep 7, 2024
1 parent 43e9437 commit 65c9fe6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xess/xess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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))))
}

0 comments on commit 65c9fe6

Please sign in to comment.