Skip to content

Commit

Permalink
move setup url to app
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryD committed May 28, 2024
1 parent 93ef637 commit d409c6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app/app.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { setBuildURLConfig } from '@ember-data/request-utils';
import Application from '@ember/application';

import config from 'ember-boilerplate/config/environment';
Expand All @@ -10,4 +11,9 @@ export default class App extends Application {
Resolver = Resolver;
}

setBuildURLConfig({
host: config.host,
namespace: config.namespace,
});

loadInitializers(App, config.modulePrefix);
7 changes: 1 addition & 6 deletions app/routes/application.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit d409c6f

Please sign in to comment.