Put meta before data in the json responses.
This commit is contained in:
parent
136a47bf10
commit
91ac2315e6
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ function _request(method, url, callback)
|
|||
if (callback != null)
|
||||
{
|
||||
var response = {
|
||||
"data": JSON.parse(request.responseText),
|
||||
"meta": {}
|
||||
"meta": {},
|
||||
"data": JSON.parse(request.responseText)
|
||||
};
|
||||
response["meta"]["request_url"] = url;
|
||||
response["meta"]["status"] = request.status;
|
||||
|
|
Loading…
Reference in a new issue