remove perm of targets

This commit is contained in:
Ulric Qin 2021-12-10 09:49:11 +08:00
parent 964d50b4e7
commit 5634f48725
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ func configRoute(r *gin.Engine, version string) {
pages.DELETE("/busi-group/:id", jwtAuth(), user(), perm("/busi-groups/del"), bgrw(), busiGroupDel)
pages.GET("/busi-group/:id/perm/:perm", jwtAuth(), user(), checkBusiGroupPerm)
pages.GET("/targets", jwtAuth(), user(), perm("/targets"), targetGets)
pages.GET("/targets", jwtAuth(), user(), targetGets)
pages.DELETE("/targets", jwtAuth(), user(), perm("/targets/del"), targetDel)
pages.GET("/targets/tags", jwtAuth(), user(), perm("/targets"), targetGetTags)
pages.GET("/targets/tags", jwtAuth(), user(), targetGetTags)
pages.POST("/targets/tags", jwtAuth(), user(), perm("/targets/put"), targetBindTags)
pages.DELETE("/targets/tags", jwtAuth(), user(), perm("/targets/put"), targetUnbindTags)
pages.PUT("/targets/note", jwtAuth(), user(), perm("/targets/put"), targetUpdateNote)