Add a json handler for home
This commit is contained in:
@@ -52,6 +52,7 @@ func AttachHandlers(router *chi.Mux, downloader *universal.Downloader, torMgr *t
|
||||
router.Use(hs.options)
|
||||
|
||||
router.Get("/", hs.handleHome)
|
||||
router.Get("/stats", hs.handleHomeJson)
|
||||
// debug
|
||||
router.Post("/reboot-worker", hs.handleRebootWorkerPool)
|
||||
router.Post("/reboot-refresh", hs.handleRebootRefreshWorker)
|
||||
|
||||
Reference in New Issue
Block a user