rfc-process
Version:
The default blueprint for ember-cli addons.
14 lines (11 loc) • 359 B
JavaScript
import JSONAPIAdapter from '@ember-data/adapter/json-api';
export default class ApplicationAdapter extends JSONAPIAdapter {
urlForFindAll(modelName) {
const path = this.pathForType(modelName);
return `/${path}/all.json`;
}
urlForFindRecord(id, modelName) {
const path = this.pathForType(modelName);
return `/${path}/${id}.json`;
}
}