This commit is contained in:
eson
2023-07-24 19:17:02 +08:00
parent a10e100364
commit b43b5dbd59
33 changed files with 109 additions and 415 deletions

View File

@@ -19,17 +19,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
},
{
Method: http.MethodPost,
Path: "/api/user/accept-cookie",
Path: "/api/auth/accept-cookie",
Handler: AcceptCookieHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/user/oauth2/login/google",
Path: "/api/auth/oauth2/login/google",
Handler: UserGoogleLoginHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/api/user/oauth2/login/register",
Path: "/api/auth/oauth2/login/register",
Handler: UserEmailRegisterHandler(serverCtx),
},
},