mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
fever api last_refreshed_on_time
This commit is contained in:
parent
0226c8da23
commit
60a947f131
@ -62,6 +62,8 @@ type FeverFavicon struct {
|
|||||||
func writeFeverJSON(rw http.ResponseWriter, data map[string]interface{}) {
|
func writeFeverJSON(rw http.ResponseWriter, data map[string]interface{}) {
|
||||||
data["api_version"] = 1
|
data["api_version"] = 1
|
||||||
data["auth"] = 1
|
data["auth"] = 1
|
||||||
|
// NOTE: does not adhere to the API spec
|
||||||
|
data["last_refreshed_on_time"] = time.Now().Unix()
|
||||||
writeJSON(rw, data)
|
writeJSON(rw, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user