/ == /experimental/ui
This commit is contained in:
@@ -24,7 +24,7 @@ func (h Handler) feeds(w http.ResponseWriter, r *http.Request) error {
|
|||||||
|
|
||||||
u2 := *r.URL
|
u2 := *r.URL
|
||||||
u2.RawQuery = ""
|
u2.RawQuery = ""
|
||||||
u2.Path = "/experimental/ui"
|
u2.Path = "/"
|
||||||
http.Redirect(w, r, u2.String(), http.StatusSeeOther)
|
http.Redirect(w, r, u2.String(), http.StatusSeeOther)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ func (h Handler) serveHTTP(w http.ResponseWriter, r *http.Request) error {
|
|||||||
return h.vpntor(r.Context(), r.Body)
|
return h.vpntor(r.Context(), r.Body)
|
||||||
} else if strings.HasPrefix(r.URL.Path, "/v1/feeds") {
|
} else if strings.HasPrefix(r.URL.Path, "/v1/feeds") {
|
||||||
return h.feeds(w, r)
|
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)
|
return h.ui(w, r)
|
||||||
} else if strings.HasPrefix(r.URL.Path, "/experimental/echo") {
|
} else if strings.HasPrefix(r.URL.Path, "/experimental/echo") {
|
||||||
b, _ := io.ReadAll(r.Body)
|
b, _ := io.ReadAll(r.Body)
|
||||||
|
|||||||
Reference in New Issue
Block a user