mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-13 11:05:32 +00:00
Don't redirect by default to dashboard
This commit is contained in:
parent
cd51868e48
commit
4c61f95a6a
@ -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)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user