Fix root to login redirect

This commit is contained in:
the-m-monk
2025-12-29 22:32:38 +10:00
parent 775edabdf8
commit c25bff7203

View File

@@ -8,7 +8,7 @@ import (
func RegisterWebui() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/" {
http.Redirect(w, r, "/web/", http.StatusPermanentRedirect)
http.Redirect(w, r, "/web/login", http.StatusPermanentRedirect)
return
}
http.NotFound(w, r)