fix metagen deps

This commit is contained in:
2025-03-09 16:42:08 -04:00
parent 78cd5cc2bb
commit 963b83534c
10 changed files with 95 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ import (
. "maragu.dev/gomponents/html"
"maxwarden/auth"
"maxwarden/config"
"maxwarden/constants"
"maxwarden/middleware"
"log"
@@ -46,7 +46,7 @@ func LoginHandler(w http.ResponseWriter, r *http.Request) {
return
}
defaultPath := config.IDENTITY_DEFAULT_PATH
defaultPath := constants.IDENTITY_DEFAULT_PATH
http.Redirect(w, r, defaultPath, http.StatusFound)
}
}

View File

@@ -2,7 +2,7 @@ package auth
import (
"net/http"
"maxwarden/config"
"maxwarden/constants"
"maxwarden/middleware"
)
@@ -10,5 +10,5 @@ func LogoutHandler(w http.ResponseWriter, r *http.Request) {
middleware.DeleteIdentityCookie(w, r)
middleware.DeleteSessionCookie(w, r)
http.Redirect(w, r, config.IDENTITY_LOGIN_PATH, http.StatusFound)
http.Redirect(w, r, constants.IDENTITY_LOGIN_PATH, http.StatusFound)
}