mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
locations API returns data in data (no longer in locations)
This commit is contained in:
@@ -452,7 +452,8 @@ static int dispatch(struct mg_connection *conn, const char *uri)
|
||||
json_delete(fields);
|
||||
json_delete(json);
|
||||
}
|
||||
json_append_member(obj, "locations", locs);
|
||||
json_append_member(obj, "data", locs);
|
||||
json_append_member(obj, "status", json_mknumber(200));
|
||||
|
||||
if (otype == JSON) {
|
||||
return (json_response(conn, obj));
|
||||
|
||||
Reference in New Issue
Block a user