mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 20:27:46 +08:00
add third-part endpoint as sync event type
This commit is contained in:
parent
f48d522cc6
commit
ada63b48db
@ -221,7 +221,7 @@ func (v2 *V2) serviceRouter() chi.Router {
|
|||||||
r.Get("/deploy-info", controller.GetServiceDeployInfo)
|
r.Get("/deploy-info", controller.GetServiceDeployInfo)
|
||||||
|
|
||||||
// third-party service
|
// 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.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.Delete("/endpoints", middleware.WrapEL(controller.GetManager().Endpoints, dbmodel.TargetTypeService, "delete-thirdpart-service", dbmodel.SYNEVENTTYPE))
|
||||||
r.Get("/endpoints", controller.GetManager().Endpoints)
|
r.Get("/endpoints", controller.GetManager().Endpoints)
|
||||||
|
Loading…
Reference in New Issue
Block a user