DodoApp: Cache static resources.
Change-Id: Ib1f800ea052c5f3b7929a1d325b351dfa0a6633e
diff --git a/core/installer/welcome/launcher.go b/core/installer/welcome/launcher.go
index 3dd70b9..a828f1a 100644
--- a/core/installer/welcome/launcher.go
+++ b/core/installer/welcome/launcher.go
@@ -18,9 +18,6 @@
//go:embed launcher-tmpl/launcher.html
var indexHTML embed.FS
-//go:embed static/*
-var files embed.FS
-
type AppLauncherInfo struct {
Id string
Name string
@@ -140,7 +137,7 @@
}
func (s *LauncherServer) Start() {
- http.Handle("/static/", cachingHandler{http.FileServer(http.FS(files))})
+ http.Handle("/stat/", cachingHandler{http.FileServer(http.FS(statAssets))})
http.HandleFunc("/", s.homeHandler)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", s.port), nil))
}