Skip to content

Commit

Permalink
temporarily block auth routes
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Nov 30, 2024
1 parent 5ed8922 commit 8058193
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/resource/auth/routes.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
package auth

import (
"os"

"github.com/labstack/echo/v4"
)

func (mod *AuthModule) Routes(g *echo.Group) {
auth := g.Group("/auth")

if os.Getenv("ENV") != "local" {
return
}

auth.POST("/register", mod.registerHandler)
auth.POST("/login", mod.loginHandler)

auth.POST("/refresh", mod.refreshHandler)
auth.POST("/logout", mod.logoutHandler)
auth.POST("/forgot-password", mod.forgotPasswordHandler)
Expand Down

0 comments on commit 8058193

Please sign in to comment.