chore(deps): remove dependencies from handler package
This commit was merged in pull request #287.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user