chore(deps): remove dependencies from handler package

This commit is contained in:
2024-12-01 21:50:22 +01:00
parent e201ac7b2c
commit 48ec7b64ac
5 changed files with 46 additions and 54 deletions

View File

@@ -14,7 +14,7 @@ import (
)
type HandlerAuth interface {
handle(router *http.ServeMux)
Handle(router *http.ServeMux)
}
type HandlerAuthImpl struct {
@@ -31,7 +31,7 @@ func NewHandlerAuth(db *sql.DB, service service.AuthService, serverSettings *typ
}
}
func (handler HandlerAuthImpl) handle(router *http.ServeMux) {
func (handler HandlerAuthImpl) Handle(router *http.ServeMux) {
// Don't use auth middleware for these routes, as it makes redirecting very difficult, if the mail is not yet verified
router.Handle("/auth/signin", handler.handleSignInPage())
router.Handle("/auth/signup", handler.handleSignUpPage())