DodoApp: Cache static resources.
Change-Id: Ib1f800ea052c5f3b7929a1d325b351dfa0a6633e
diff --git a/core/auth/memberships/main.go b/core/auth/memberships/main.go
index 0e3f2da..ba5db7c 100644
--- a/core/auth/memberships/main.go
+++ b/core/auth/memberships/main.go
@@ -28,7 +28,7 @@
//go:embed memberships-tmpl/*
var tmpls embed.FS
-//go:embed static
+//go:embed stat
var staticResources embed.FS
type Store interface {
@@ -673,7 +673,7 @@
e := make(chan error)
go func() {
r := mux.NewRouter()
- r.PathPrefix("/static/").Handler(http.FileServer(http.FS(staticResources)))
+ r.PathPrefix("/stat/").Handler(http.FileServer(http.FS(staticResources)))
r.HandleFunc("/group/{group-name}/add-user/", s.addUserToGroupHandler).Methods(http.MethodPost)
r.HandleFunc("/group/{parent-group}/add-child-group", s.addChildGroupHandler).Methods(http.MethodPost)
r.HandleFunc("/group/{owned-group}/add-owner-group", s.addOwnerGroupHandler).Methods(http.MethodPost)