[FIX] fix upgrade event as asyn event type

This commit is contained in:
凡羊羊 2019-08-25 22:10:23 +08:00
parent 3cad75b5b0
commit 496a63bbda

View File

@ -147,7 +147,7 @@ func (v2 *V2) serviceRouter() chi.Router {
r.Get("/", controller.GetManager().SingleServiceInfo)
r.Delete("/", middleware.WrapEL(controller.GetManager().SingleServiceInfo, dbmodel.TargetTypeService, "delete-service", dbmodel.SYNEVENTTYPE))
//应用升级(act)
r.Post("/upgrade", middleware.WrapEL(controller.GetManager().UpgradeService, dbmodel.TargetTypeService, "upgrade-service", dbmodel.SYNEVENTTYPE))
r.Post("/upgrade", middleware.WrapEL(controller.GetManager().UpgradeService, dbmodel.TargetTypeService, "upgrade-service", dbmodel.ASYNEVENTTYPE))
//应用状态获取(act)
r.Get("/status", controller.GetManager().StatusService)
//构建版本列表