From 63adcc2cd919dbcfc562d1d726295b4f23850d9f Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 15 Jun 2022 14:01:01 +0800 Subject: [PATCH] bugfix for alert-aggr-views --- src/webapi/router/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webapi/router/router.go b/src/webapi/router/router.go index 91fe639b..52b721d2 100644 --- a/src/webapi/router/router.go +++ b/src/webapi/router/router.go @@ -244,9 +244,9 @@ func configRoute(r *gin.Engine, version string) { pages.DELETE("/alert-cur-events", jwtAuth(), user(), perm("/alert-cur-events/del"), alertCurEventDel) pages.GET("/alert-aggr-views", jwtAuth(), alertAggrViewGets) - pages.DELETE("/alert-aggr-views", jwtAuth(), alertAggrViewDel) - pages.POST("/alert-aggr-views", jwtAuth(), alertAggrViewAdd) - pages.PUT("/alert-aggr-views", jwtAuth(), alertAggrViewPut) + pages.DELETE("/alert-aggr-views", jwtAuth(), user(), alertAggrViewDel) + pages.POST("/alert-aggr-views", jwtAuth(), user(), alertAggrViewAdd) + pages.PUT("/alert-aggr-views", jwtAuth(), user(), alertAggrViewPut) pages.GET("/busi-group/:id/task-tpls", jwtAuth(), user(), perm("/job-tpls"), bgro(), taskTplGets) pages.POST("/busi-group/:id/task-tpls", jwtAuth(), user(), perm("/job-tpls/add"), bgrw(), taskTplAdd)