Przeglądaj źródła

更新规则链管理接口

liuxiulin 2 lat temu
rodzic
commit
3296e5915a
1 zmienionych plików z 2 dodań i 1 usunięć
  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())
 	adminRouter := v1router.Party("/admin", newJWThandle())
 	RoleAPI := mvc.New(adminRouter.Party("/role"))
 	RoleAPI := mvc.New(adminRouter.Party("/role"))
 	RoleAPI.Register(roleService).Handle(new(controllers.RoleController))
 	RoleAPI.Register(roleService).Handle(new(controllers.RoleController))
+
 	// ruleChain api
 	// ruleChain api
-	RuleChainAPI := mvc.New(adminRouter.Party("/rule_chain"))
+	RuleChainAPI := mvc.New(v1router.Party("/chain"))
 	RuleChainAPI.Register(ruleChainService).Handle(new(controllers.RuleChainController))
 	RuleChainAPI.Register(ruleChainService).Handle(new(controllers.RuleChainController))
 }
 }