|
@@ -1142,17 +1142,22 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
Path: "/api/card/detail",
|
|
|
Handler: wxcard.GetApiWxCardDetailHandler(serverCtx),
|
|
|
},
|
|
|
- {
|
|
|
- Method: http.MethodGet,
|
|
|
- Path: "/api/card/qrcode",
|
|
|
- Handler: wxcard.GetApiWxCardQrcodeHandler(serverCtx),
|
|
|
- },
|
|
|
}...,
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
)
|
|
|
|
|
|
server.AddRoutes(
|
|
|
+ []rest.Route{
|
|
|
+ {
|
|
|
+ Method: http.MethodGet,
|
|
|
+ Path: "/api/card/qrcode",
|
|
|
+ Handler: wxcard.GetApiWxCardQrcodeHandler(serverCtx),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ )
|
|
|
+
|
|
|
+ server.AddRoutes(
|
|
|
rest.WithMiddlewares(
|
|
|
[]rest.Middleware{serverCtx.Authority},
|
|
|
[]rest.Route{
|