Skip to content

🎧 Your Personal Streaming Service

Add a catchall route to redirect everything to app/index.html

Deluan3b6d0b3d1507
diff --git a/server/server.go b/server/server.go
index 6e3db91b7..1fe7f7a14 100644
--- a/server/server.go
+++ b/server/server.go
@@ -63,7 +63,7 @@ func (a *Server) initRoutes() {
r.Use(InjectLogger)
indexHtml := path.Join(conf.Server.BaseURL, consts.URLPathUI, "index.html")
- r.Get("/", func(w http.ResponseWriter, r *http.Request) {
+ r.Get("/*", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, indexHtml, 302)
})