diff --git a/http.c b/http.c index a870669..458e635 100644 --- a/http.c +++ b/http.c @@ -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));