From d409c6f3f0dcc95eeeea1b16c9ef661d3481fffa Mon Sep 17 00:00:00 2001 From: AmauryD Date: Tue, 28 May 2024 22:19:53 +0200 Subject: [PATCH] move setup url to app --- app/app.ts | 6 ++++++ app/routes/application.ts | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) 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;