Merge pull request #31 from wistityhq/fix/studio

Fix JSON pull structure
This commit is contained in:
Loïc Saint-Roch 2015-11-13 15:56:52 +01:00
commit 3f0c622b32

View File

@ -326,11 +326,11 @@ module.exports = function (strapi) {
return model;
}),
api: _.mapValues(_.cloneDeep(strapi.api), function (api) {
return _.mapValues(api.models, function (model) {
_.forEach(api.models, function (model) {
model.attributes = _.omit(model.attributes, _.isFunction);
return model;
});
return api;
}),
templates: {}
};