This commit is contained in:
parent
d2205b11a7
commit
02b9aebbe5
341 changed files with 1571 additions and 32574 deletions
10
xess/xess.go
10
xess/xess.go
|
|
@ -8,8 +8,8 @@ import (
|
|||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/TecharoHQ/anubis"
|
||||
"github.com/TecharoHQ/anubis/internal"
|
||||
"git.sad.ovh/sophie/nuke"
|
||||
"git.sad.ovh/sophie/nuke/internal"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -24,16 +24,16 @@ func init() {
|
|||
Mount(http.DefaultServeMux)
|
||||
|
||||
//goland:noinspection GoBoolExpressions
|
||||
if anubis.Version != "devel" {
|
||||
if nuke.Version != "devel" {
|
||||
URL = filepath.Join(filepath.Dir(URL), "xess.min.css")
|
||||
}
|
||||
|
||||
URL = URL + "?cachebuster=" + anubis.Version
|
||||
URL = URL + "?cachebuster=" + nuke.Version
|
||||
}
|
||||
|
||||
// Mount registers the xess static file handlers on the given mux
|
||||
func Mount(mux *http.ServeMux) {
|
||||
prefix := anubis.BasePrefix + "/.within.website/x/xess/"
|
||||
prefix := nuke.BasePrefix + "/.within.website/x/xess/"
|
||||
|
||||
mux.Handle(prefix, internal.UnchangingCache(http.StripPrefix(prefix, http.FileServerFS(Static))))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue