[FIX] fix rule api from /v2/nodes/{} to /v2/nodes/rule/{}

This commit is contained in:
bay1ts 2017-12-11 17:09:50 +08:00
parent 20130fb5c5
commit 755e292676

View File

@ -57,7 +57,7 @@ func Routers(mode string) *chi.Mux {
r.Get("/resources", controller.Resources)
r.Get("/", controller.GetNodes)
r.Get("/{rule}", controller.GetRuleNodes)
r.Get("/rule/{rule}", controller.GetRuleNodes)
r.Post("/", controller.NewNode) //增加一个节点
r.Post("/multiple", controller.NewMultipleNode) //增加多个节点
r.Delete("/{node_id}", controller.DeleteRainbondNode) //删除一个节点