upload error

This commit is contained in:
diemarfe64635 committed 2020-06-29 17:06:04 +02:00
1 parent c41cecebd6
commit dd7df2b28e
12 files changed
+77 -70

No files matched your search

+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}`;
// ...
}
}