add: some user api and all api desc
This commit is contained in:
@@ -25,6 +25,18 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
},
|
||||
}...,
|
||||
),
|
||||
rest.WithPrefix("/api/email"),
|
||||
rest.WithPrefix("/api/v1/email"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
// 忘记密码-发送验证码
|
||||
Method: http.MethodPost,
|
||||
Path: "/forgot-password/send",
|
||||
Handler: email.ForgotPasswordHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithPrefix("/api/v1/auth"),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user