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:
Jacob Gable 2014-04-20 19:48:59 -05:00
parent 52197d3a38
commit 5ddfe279f1

View File

@ -3,6 +3,10 @@
'use strict';
Ghost.Collections.Tags = Ghost.ProgressCollection.extend({
url: Ghost.paths.apiRoot + '/tags/'
url: Ghost.paths.apiRoot + '/tags/',
parse: function (resp) {
return resp.tags;
}
});
}());