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),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-24 11:17:02 +00:00
|
|
|
Path: "/api/auth/oauth2/login/register",
|
2023-07-24 09:22:06 +00:00
|
|
|
Handler: UserEmailRegisterHandler(serverCtx),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|