feat(server/m7-363): branding-aware index handler with html/template

This commit is contained in:
2026-05-03 17:21:30 -04:00
parent 46ea9a761a
commit 004d935512
4 changed files with 137 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (s *Server) Router() http.Handler {
subsonic.Mount(r, s.Pool, s.Logger, s.SubsonicCfg, writer)
}
spa := web.Handler()
spa := web.Handler(s.BrandingCfg)
r.NotFound(func(w http.ResponseWriter, req *http.Request) {
p := req.URL.Path
if strings.HasPrefix(p, "/api/") || strings.HasPrefix(p, "/rest/") {