show loading status

This commit is contained in:
Nazar Kanaev
2020-08-04 22:28:13 +01:00
parent 44b5a6a67f
commit d913872e76
3 changed files with 8 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ func StaticHandler(rw http.ResponseWriter, req *http.Request) {
func StatusHandler(rw http.ResponseWriter, req *http.Request) {
writeJSON(rw, map[string]interface{}{
"running": *handler(req).queueSize > 0,
"running": *handler(req).queueSize,
"stats": db(req).FeedStats(),
})
}