@@ -6,7 +6,7 @@ import (
"sparrow/services/knowoapi/services"
)
-// RuleChainController ruleChain
+// RuleChainController api
type RuleChainController struct {
Ctx iris.Context
Service services.RuleChainService
@@ -98,6 +98,6 @@ func registerRouters(srv *iris.Application, models *model.All, gen *generator.Ke
RoleAPI.Register(roleService).Handle(new(controllers.RoleController))
// ruleChain api
- RuleChainAPI := mvc.New(v1router.Party("/chain"))
+ RuleChainAPI := mvc.New(adminRouter.Party("/rule_chain"))
RuleChainAPI.Register(ruleChainService).Handle(new(controllers.RuleChainController))
}
@@ -22,7 +22,7 @@ type ruleChainService struct {
model *model.All
-// NewRuleChainService create a alert back a AlertService interface
+// NewRuleChainService new ruleChain service
func NewRuleChainService(model *model.All) RuleChainService {
return ruleChainService{
model: model,