fever api last_refreshed_on_time

This commit is contained in:
Nazar Kanaev 2020-11-01 15:33:24 +00:00
parent 0226c8da23
commit 60a947f131

View File

@ -62,6 +62,8 @@ type FeverFavicon struct {
func writeFeverJSON(rw http.ResponseWriter, data map[string]interface{}) {
data["api_version"] = 1
data["auth"] = 1
// NOTE: does not adhere to the API spec
data["last_refreshed_on_time"] = time.Now().Unix()
writeJSON(rw, data)
}