diff --git a/server/auth/internal/handler/routes.go b/server/auth/internal/handler/routes.go index f8f1c8c4..19a54a86 100644 --- a/server/auth/internal/handler/routes.go +++ b/server/auth/internal/handler/routes.go @@ -43,7 +43,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Handler: UserEmailRegisterHandler(serverCtx), }, { - Method: http.MethodGet, + Method: http.MethodPost, Path: "/api/auth/reset/token", Handler: UserResetTokenHandler(serverCtx), }, diff --git a/server_api/auth.api b/server_api/auth.api index 089aab6d..59e07e45 100644 --- a/server_api/auth.api +++ b/server_api/auth.api @@ -12,28 +12,28 @@ import "basic.api" service auth { @handler UserLoginHandler post /api/auth/login(RequestUserLogin) returns (response); - + @handler UserRegisterHandler post /api/auth/register(RequestUserRegister) returns (response); - + @handler AcceptCookieHandler post /api/auth/accept-cookie(request) returns (response); - + @handler UserGoogleLoginHandler get /api/auth/oauth2/login/google(RequestGoogleLogin) returns (response); - + @handler UserEmailConfirmationHandler get /api/auth/email/confirmation(RequestEmailConfirmation) returns (response); - + @handler UserEmailRegisterHandler post /api/auth/oauth2/register(RequestEmailRegister) returns (response); - + @handler UserResetTokenHandler - get /api/auth/reset/token(RequestUserResetToken) returns (response); - + post /api/auth/reset/token(RequestUserResetToken) returns (response); + @handler UserResetPasswordHandler post /api/auth/reset/password(RequestUserResetPassword) returns (response); - + @handler DebugAuthDeleteHandler post /api/auth/debug/delete(RequestAuthDelete) returns (response); }