/ == /experimental/ui

main
bel 2025-05-07 22:05:44 -06:00
parent c7375949c2
commit e6f551913a
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ func (h Handler) feeds(w http.ResponseWriter, r *http.Request) error {
u2 := *r.URL
u2.RawQuery = ""
u2.Path = "/experimental/ui"
u2.Path = "/"
http.Redirect(w, r, u2.String(), http.StatusSeeOther)
return nil
}

View File

@ -28,7 +28,7 @@ func (h Handler) serveHTTP(w http.ResponseWriter, r *http.Request) error {
return h.vpntor(r.Context(), r.Body)
} else if strings.HasPrefix(r.URL.Path, "/v1/feeds") {
return h.feeds(w, r)
} else if strings.HasPrefix(r.URL.Path, "/experimental/ui") {
} else if strings.HasPrefix(r.URL.Path, "/experimental/ui") || r.URL.Path == "/" {
return h.ui(w, r)
} else if strings.HasPrefix(r.URL.Path, "/experimental/echo") {
b, _ := io.ReadAll(r.Body)