upload error

This commit is contained in:
2020-06-29 17:06:04 +02:00
parent c41cecebd6
commit dd7df2b28e
12 changed files with 77 additions and 70 deletions
+12 -2
View File
@@ -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}`;
// ...
}
}