Procházet zdrojové kódy

更新规则链管理接口

liuxiulin před 2 roky
rodič
revize
3296e5915a
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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))
 }