Ghost/ghost/admin/app/adapters/page.js
Kevin Ansfield a0a0c50ff5 Removed use of ?include=tags,authors,authors.roles query param on post/page requests
no issue
- Admin API v2 now includes tags and authors by default
2019-02-25 21:55:55 +07:00

13 lines
403 B
JavaScript

import ApplicationAdapter from 'ghost-admin/adapters/application';
export default ApplicationAdapter.extend({
// posts and pages now include everything by default
buildIncludeURL(store, modelName, id, snapshot, requestType, query) {
return this.buildURL(modelName, id, snapshot, requestType, query);
},
buildQuery(store, modelName, options) {
return options;
}
});