all: add /api/proxies api for statistics info

This commit is contained in:
fatedier
2016-07-17 21:42:21 +08:00
parent a9bf25f255
commit ac09ba3982
8 changed files with 289 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ func RunDashboardServer(addr string, port int64) (err error) {
router := gin.New()
//router.LoadHTMLGlob("assets/*")
router.GET("/api/reload", apiReload)
router.GET("/api/proxies", apiProxies)
go router.Run(fmt.Sprintf("%s:%d", addr, port))
return
}