소스 검색

更新规则链管理接口

liuxiulin 2 년 전
부모
커밋
3296e5915a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      services/knowoapi/router.go

+ 2 - 1
services/knowoapi/router.go

@@ -96,7 +96,8 @@ func registerRouters(srv *iris.Application, models *model.All, gen *generator.Ke
 	adminRouter := v1router.Party("/admin", newJWThandle())
 	RoleAPI := mvc.New(adminRouter.Party("/role"))
 	RoleAPI.Register(roleService).Handle(new(controllers.RoleController))
+
 	// ruleChain api
-	RuleChainAPI := mvc.New(adminRouter.Party("/rule_chain"))
+	RuleChainAPI := mvc.New(v1router.Party("/chain"))
 	RuleChainAPI.Register(ruleChainService).Handle(new(controllers.RuleChainController))
 }