show unread/starred count

This commit is contained in:
Nazar Kanaev
2020-07-14 10:30:02 +01:00
parent ffd2deb5d8
commit 76a08df741
5 changed files with 81 additions and 5 deletions

View File

@@ -45,7 +45,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).fetchRunning,
"stats": map[string]int64{},
"stats": db(req).FeedStats(),
})
}