add ali captcha
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
app "tyc-server/app/main/api/internal/handler/app"
|
||||
auth "tyc-server/app/main/api/internal/handler/auth"
|
||||
authorization "tyc-server/app/main/api/internal/handler/authorization"
|
||||
captcha "tyc-server/app/main/api/internal/handler/captcha"
|
||||
notification "tyc-server/app/main/api/internal/handler/notification"
|
||||
pay "tyc-server/app/main/api/internal/handler/pay"
|
||||
product "tyc-server/app/main/api/internal/handler/product"
|
||||
@@ -954,6 +955,18 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
rest.WithPrefix("/api/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
// get encrypted scene id for aliyun captcha
|
||||
Method: http.MethodPost,
|
||||
Path: "/captcha/encryptedSceneId",
|
||||
Handler: captcha.GetEncryptedSceneIdHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithPrefix("/api/v1"),
|
||||
)
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user