mirror of
https://github.com/rancher/steve.git
synced 2025-09-24 04:49:53 +00:00
Don't redirect by default to dashboard
This commit is contained in:
@@ -34,9 +34,6 @@ func Route(next http.Handler, uiSetting func() string) http.Handler {
|
|||||||
|
|
||||||
root := mux.NewRouter()
|
root := mux.NewRouter()
|
||||||
root.UseEncodedPath()
|
root.UseEncodedPath()
|
||||||
root.Path("/").HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
|
||||||
http.Redirect(rw, req, "/dashboard/", http.StatusFound)
|
|
||||||
})
|
|
||||||
root.Path("/dashboard").HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
root.Path("/dashboard").HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||||
http.Redirect(rw, req, "/dashboard/", http.StatusFound)
|
http.Redirect(rw, req, "/dashboard/", http.StatusFound)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user