Feat: add switch config file API

This commit is contained in:
Dreamacro
2018-11-30 17:42:40 +08:00
parent dc24dd4d89
commit 9cfd26d440
4 changed files with 38 additions and 4 deletions

View File

@ -47,7 +47,7 @@ func Start(addr string, secret string) {
r.With(jsonContentType).Get("/logs", getLogs)
r.Mount("/configs", configRouter())
r.Mount("/proxies", proxyRouter())
// r.Mount("/rules", ruleRouter())
r.Mount("/rules", ruleRouter())
log.Infoln("RESTful API listening at: %s", addr)
err := http.ListenAndServe(addr, r)