diff --git a/server/internal/api/v1/auth/routes.go b/server/internal/api/v1/auth/routes.go index 529e2f22..6f4be100 100644 --- a/server/internal/api/v1/auth/routes.go +++ b/server/internal/api/v1/auth/routes.go @@ -28,7 +28,7 @@ type loginResponse struct { func SetupRoutes(r *gin.RouterGroup) { group := r.Group("/auth") group.POST("/password", handlePasswordAuth) - group.POST("/reset-password", handlePasswordReset) + group.POST("/request-password-reset", handleRequestPasswordReset) group.POST("/set-cookie", authenticator.RequireToken, handleSetCookie) } @@ -62,7 +62,7 @@ func handlePasswordAuth(c *gin.Context) { } } -func handlePasswordReset(c *gin.Context) { +func handleRequestPasswordReset(c *gin.Context) { var params resetPasswordParams err := c.ShouldBind(¶ms) if err != nil {