From ada63b48dbb4152381011e01d86e762a1b01d889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E7=BE=8A=E7=BE=8A?= Date: Tue, 10 Sep 2019 13:13:42 +0800 Subject: [PATCH] add third-part endpoint as sync event type --- api/api_routers/version2/v2Routers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)