|
@@ -1288,18 +1288,13 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
Path: "/api/avatar/config",
|
|
|
Handler: avatar.GetApiAvatarConfigHandler(serverCtx),
|
|
|
},
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/avatar/sts",
|
|
|
+ Handler: avatar.GetAcsResponseHandler(serverCtx),
|
|
|
+ },
|
|
|
}...,
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
)
|
|
|
-
|
|
|
- server.AddRoutes(
|
|
|
- []rest.Route{
|
|
|
- {
|
|
|
- Method: http.MethodPost,
|
|
|
- Path: "/api/avatar/sts",
|
|
|
- Handler: avatar.GetAcsResponseHandler(serverCtx),
|
|
|
- },
|
|
|
- },
|
|
|
- )
|
|
|
}
|