Fix root to login redirect
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
func RegisterWebui() {
|
func RegisterWebui() {
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.URL.Path == "/" {
|
if r.URL.Path == "/" {
|
||||||
http.Redirect(w, r, "/web/", http.StatusPermanentRedirect)
|
http.Redirect(w, r, "/web/login", http.StatusPermanentRedirect)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
|
|||||||
Reference in New Issue
Block a user