From a0f077b0911f52042c9289505af997d193f80b95 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Sat, 6 Oct 2018 14:19:06 +0800 Subject: [PATCH] Improve: get /rules return proxy now --- hub/rules.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hub/rules.go b/hub/rules.go index b8780fc1..96ddc26c 100644 --- a/hub/rules.go +++ b/hub/rules.go @@ -17,6 +17,7 @@ func ruleRouter() http.Handler { type Rule struct { Name string `json:"name"` Payload string `json:"type"` + Proxy string `json:"proxy"` } type GetRulesResponse struct { @@ -31,6 +32,7 @@ func getRules(w http.ResponseWriter, r *http.Request) { rules = append(rules, Rule{ Name: rule.RuleType().String(), Payload: rule.Payload(), + Proxy: rule.Adapter(), }) }