adapt store actions

This commit is contained in:
2020-06-23 17:20:34 +02:00
parent 7dacf0441c
commit e75e22316e
5 changed files with 19 additions and 43 deletions
+3 -7
View File
@@ -1,13 +1,6 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
const PRODUKT_KATEGORIEN = [
'Pasta',
'Gemüse',
'Milchprodukte',
'Fleisch'
];
export default class ProduktRoute extends Route {
@service store;
@@ -16,6 +9,9 @@ export default class ProduktRoute extends Route {
return this.store.findAll('produkt');
}
}
/*async model() {
let response = await fetch('/api/produkte.json');
let { data } = await response.json();