upload error
This commit is contained in:
@@ -3,7 +3,17 @@ import JSONAPIAdapter from '@ember-data/adapter/json-api';
|
||||
export default class ApplicationAdapter extends JSONAPIAdapter {
|
||||
namespace = 'api';
|
||||
|
||||
buildURL(...args) {
|
||||
return `${super.buildURL(...args)}.json`;
|
||||
buildURL(...args) {return `${super.buildURL(...args)}.json`;}
|
||||
|
||||
urlForUpdateRecord(id, modelName, snapshot) {
|
||||
return `api/${modelName}s`;
|
||||
}
|
||||
|
||||
createRecord(store, type, snapshot) {
|
||||
let data = this.serialize(snapshot, { includeId: true });
|
||||
//let url = `/${type.modelName}`;
|
||||
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user