DodoApp: Cache static resources.
Change-Id: Ib1f800ea052c5f3b7929a1d325b351dfa0a6633e
diff --git a/core/installer/welcome/welcome.go b/core/installer/welcome/welcome.go
index 85d7f61..234a53b 100644
--- a/core/installer/welcome/welcome.go
+++ b/core/installer/welcome/welcome.go
@@ -27,6 +27,9 @@
//go:embed static/*
var staticAssets embed.FS
+//go:embed stat/*
+var statAssets embed.FS
+
type Server struct {
port int
repo soft.RepoIO
@@ -59,7 +62,7 @@
func (s *Server) Start() {
r := mux.NewRouter()
- r.PathPrefix("/static/").Handler(cachingHandler{http.FileServer(http.FS(staticAssets))})
+ r.PathPrefix("/stat/").Handler(cachingHandler{http.FileServer(http.FS(statAssets))})
r.Path("/").Methods("POST").HandlerFunc(s.createAccount)
r.Path("/").Methods("GET").HandlerFunc(s.createAccountForm)
http.Handle("/", r)