mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Tag API: Primary Document Format
Closes #2605 - Change tags browse() response to { tags: [...] } - Update client side collection to use nested tags document - Update test references to use response.tags
This commit is contained in:
parent
52197d3a38
commit
5ddfe279f1
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
Ghost.Collections.Tags = Ghost.ProgressCollection.extend({
|
Ghost.Collections.Tags = Ghost.ProgressCollection.extend({
|
||||||
url: Ghost.paths.apiRoot + '/tags/'
|
url: Ghost.paths.apiRoot + '/tags/',
|
||||||
|
|
||||||
|
parse: function (resp) {
|
||||||
|
return resp.tags;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Add table
Reference in a new issue