2019-02-25 17:55:55 +03:00
|
|
|
import ApplicationAdapter from 'ghost-admin/adapters/application';
|
|
|
|
|
2022-02-02 19:57:22 +03:00
|
|
|
export default class Page extends ApplicationAdapter {
|
2019-02-25 17:55:55 +03:00
|
|
|
// posts and pages now include everything by default
|
|
|
|
buildIncludeURL(store, modelName, id, snapshot, requestType, query) {
|
|
|
|
return this.buildURL(modelName, id, snapshot, requestType, query);
|
2022-02-02 19:57:22 +03:00
|
|
|
}
|
2019-02-25 17:55:55 +03:00
|
|
|
|
|
|
|
buildQuery(store, modelName, options) {
|
2022-09-13 23:01:53 +03:00
|
|
|
if (!options.formats) {
|
|
|
|
options.formats = 'mobiledoc,lexical';
|
|
|
|
}
|
|
|
|
|
2019-02-25 17:55:55 +03:00
|
|
|
return options;
|
|
|
|
}
|
2022-02-02 19:57:22 +03:00
|
|
|
}
|