Skip to content

Commit

Permalink
add ember-data-fastboot
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 22, 2024
1 parent e948ba8 commit 86225db
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import JSONAPIAdapter from '@ember-data/adapter/json-api';

export default class ApplicationAdapter extends JSONAPIAdapter {
shouldBackgroundReloadAll() {
return false;
}

shouldBackgroundReloadRecord() {
return false;
}

urlForFindAll(modelName) {
const path = this.pathForType(modelName);
return `/data/${path}/all.json`;
Expand Down
Loading

0 comments on commit 86225db

Please sign in to comment.