68 lines
1.5 KiB
Go
68 lines
1.5 KiB
Go
// 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),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/register",
|
|
Handler: UserRegisterHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/accept-cookie",
|
|
Handler: AcceptCookieHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/auth/oauth2/login/google",
|
|
Handler: UserGoogleLoginHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/auth/email/confirmation",
|
|
Handler: UserEmailConfirmationHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/oauth2/register",
|
|
Handler: UserEmailRegisterHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/reset/token",
|
|
Handler: UserResetTokenHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/reset/password",
|
|
Handler: UserResetPasswordHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/auth/reset/password/html",
|
|
Handler: UserResetPasswordHtmlHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/auth/debug/delete",
|
|
Handler: DebugAuthDeleteHandler(serverCtx),
|
|
},
|
|
},
|
|
)
|
|
}
|