diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 062387e7..870c2eb7 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -631,7 +631,7 @@ func Init(r *gin.Engine) { opNotificationGroup.POST("cancel", middleware.JSONParamValidator(notificationproto.OpCancelReq{}), middleware.JwtAuthenticator(), OpCancelNotification) // 前端页面路由表 - opFrontendRouteGroup := r.Group("/api/frontend_route", PrepareToC()) + opFrontendRouteGroup := r.Group("/api/frontend_route", PrepareOp()) opFrontendRouteGroup.POST("create", middleware.JSONParamValidator(frontend_route_proto.OpCreateReq{}), middleware.JwtAuthenticator(), OpCreateFrontendRoute) opFrontendRouteGroup.POST("update", middleware.JSONParamValidator(frontend_route_proto.OpUpdateReq{}), middleware.JwtAuthenticator(), OpUpdateFrontendRoute) opFrontendRouteGroup.POST("delete", middleware.JSONParamValidator(frontend_route_proto.OpDeleteReq{}), middleware.JwtAuthenticator(), OpDeleteFrontendRoute)