fix silly admin routing nonsense

This commit is contained in:
ari melody 2025-11-08 14:13:42 +00:00
parent 09c09b6310
commit a33e6717e0
Signed by: ari
GPG key ID: CF99829C92678188
6 changed files with 57 additions and 58 deletions

View file

@ -20,14 +20,14 @@ func Handler(app *model.AppState) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
mux := http.NewServeMux()
mux.Handle("/", accountIndexHandler(app))
mux.Handle("/account/", accountIndexHandler(app))
mux.Handle("/totp-setup", totpSetupHandler(app))
mux.Handle("/totp-confirm", totpConfirmHandler(app))
mux.Handle("/totp-delete", totpDeleteHandler(app))
mux.Handle("/account/totp-setup", totpSetupHandler(app))
mux.Handle("/account/totp-confirm", totpConfirmHandler(app))
mux.Handle("/account/totp-delete", totpDeleteHandler(app))
mux.Handle("/password", changePasswordHandler(app))
mux.Handle("/delete", deleteAccountHandler(app))
mux.Handle("/account/password", changePasswordHandler(app))
mux.Handle("/account/delete", deleteAccountHandler(app))
mux.ServeHTTP(w, r)
})