2023-07-24 09:22:06 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/auth/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/auth/login",
|
|
|
|
Handler: UserLoginHandler(serverCtx),
|
|
|
|
},
|
2023-08-24 03:47:22 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/auth/register",
|
|
|
|
Handler: UserRegisterHandler(serverCtx),
|
|
|
|
},
|
2023-07-24 09:22:06 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-24 11:17:02 +00:00
|
|
|
Path: "/api/auth/accept-cookie",
|
2023-07-24 09:22:06 +00:00
|
|
|
Handler: AcceptCookieHandler(serverCtx),
|
|
|
|
},
|
2023-10-17 09:25:48 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/auth/debug/token/create",
|
|
|
|
Handler: UserDebugTokenHandler(serverCtx),
|
|
|
|
},
|
2023-07-24 09:22:06 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-24 11:17:02 +00:00
|
|
|
Path: "/api/auth/oauth2/login/google",
|
2023-07-24 09:22:06 +00:00
|
|
|
Handler: UserGoogleLoginHandler(serverCtx),
|
|
|
|
},
|
2023-07-26 16:03:38 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/auth/email/confirmation",
|
|
|
|
Handler: UserEmailConfirmationHandler(serverCtx),
|
|
|
|
},
|
2023-07-24 09:22:06 +00:00
|
|
|
{
|
2023-08-11 09:39:18 +00:00
|
|
|
Method: http.MethodPost,
|
2023-07-24 11:43:56 +00:00
|
|
|
Path: "/api/auth/oauth2/register",
|
2023-07-24 09:22:06 +00:00
|
|
|
Handler: UserEmailRegisterHandler(serverCtx),
|
|
|
|
},
|
2023-08-11 09:39:18 +00:00
|
|
|
{
|
2023-09-03 16:06:55 +00:00
|
|
|
Method: http.MethodPost,
|
2023-08-11 09:39:18 +00:00
|
|
|
Path: "/api/auth/reset/token",
|
|
|
|
Handler: UserResetTokenHandler(serverCtx),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/auth/reset/password",
|
|
|
|
Handler: UserResetPasswordHandler(serverCtx),
|
|
|
|
},
|
2023-09-05 07:00:45 +00:00
|
|
|
{
|
2023-09-05 07:44:17 +00:00
|
|
|
Method: http.MethodGet,
|
2023-09-05 07:00:45 +00:00
|
|
|
Path: "/api/auth/reset/password/html",
|
|
|
|
Handler: UserResetPasswordHtmlHandler(serverCtx),
|
|
|
|
},
|
2023-08-29 10:06:39 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-08-29 10:13:49 +00:00
|
|
|
Path: "/api/auth/debug/delete",
|
2023-08-29 10:06:39 +00:00
|
|
|
Handler: DebugAuthDeleteHandler(serverCtx),
|
|
|
|
},
|
2023-07-24 09:22:06 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|