diff --git a/app/app.ts b/app/app.ts index 4b3f9d0..c26801e 100644 --- a/app/app.ts +++ b/app/app.ts @@ -1,3 +1,4 @@ +import { setBuildURLConfig } from '@ember-data/request-utils'; import Application from '@ember/application'; import config from 'ember-boilerplate/config/environment'; @@ -10,4 +11,9 @@ export default class App extends Application { Resolver = Resolver; } +setBuildURLConfig({ + host: config.host, + namespace: config.namespace, +}); + loadInitializers(App, config.modulePrefix); diff --git a/app/routes/application.ts b/app/routes/application.ts index 0d56573..059439c 100644 --- a/app/routes/application.ts +++ b/app/routes/application.ts @@ -1,19 +1,14 @@ -import { setBuildURLConfig } from '@ember-data/request-utils'; import { registerDestructor } from '@ember/destroyable'; import Route from '@ember/routing/route'; import { service } from '@ember/service'; - import config from 'ember-boilerplate/config/environment'; + import { usersHandlers } from 'ember-boilerplate/handlers/users'; import type CurrentUserService from 'ember-boilerplate/services/current-user'; import type { IntlService } from 'ember-intl'; import type SessionService from 'ember-simple-auth/services/session'; -setBuildURLConfig({ - host: config.host, - namespace: config.namespace, -}); export default class Application extends Route { @service declare session: SessionService;