diff --git a/api/api_routers/version2/v2Routers.go b/api/api_routers/version2/v2Routers.go index d05432327..779b8f28b 100644 --- a/api/api_routers/version2/v2Routers.go +++ b/api/api_routers/version2/v2Routers.go @@ -221,7 +221,7 @@ func (v2 *V2) serviceRouter() chi.Router { r.Get("/deploy-info", controller.GetServiceDeployInfo) // third-party service - r.Post("/endpoints", middleware.WrapEL(controller.GetManager().Endpoints, dbmodel.TargetTypeService, "add-thirdpart-service", dbmodel.ASYNEVENTTYPE)) + r.Post("/endpoints", middleware.WrapEL(controller.GetManager().Endpoints, dbmodel.TargetTypeService, "add-thirdpart-service", dbmodel.SYNEVENTTYPE)) r.Put("/endpoints", middleware.WrapEL(controller.GetManager().Endpoints, dbmodel.TargetTypeService, "update-thirdpart-service", dbmodel.SYNEVENTTYPE)) r.Delete("/endpoints", middleware.WrapEL(controller.GetManager().Endpoints, dbmodel.TargetTypeService, "delete-thirdpart-service", dbmodel.SYNEVENTTYPE)) r.Get("/endpoints", controller.GetManager().Endpoints)