diff --git a/app/routes/application.js b/app/routes/application.js new file mode 100644 index 0000000..e47675e --- /dev/null +++ b/app/routes/application.js @@ -0,0 +1,10 @@ +import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; + +export default class ApplicationRoute extends Route { + @service session; + + async beforeModel() { + await this.session.setup(); + } +} diff --git a/app/templates/application.hbs b/app/templates/application.hbs new file mode 100644 index 0000000..0a5bdac --- /dev/null +++ b/app/templates/application.hbs @@ -0,0 +1,2 @@ +{{page-title "Application"}} +{{outlet}} \ No newline at end of file diff --git a/ember-cli-build.js b/ember-cli-build.js index a4c0494..a024e3c 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -12,6 +12,9 @@ module.exports = function (defaults) { 'ember-power-select': { theme: false, }, + 'ember-simple-auth': { + useSessionSetupMethod: true, + }, }); return require('@embroider/compat').compatBuild(app, Webpack, { diff --git a/tests/unit/routes/application-test.js b/tests/unit/routes/application-test.js new file mode 100644 index 0000000..b334011 --- /dev/null +++ b/tests/unit/routes/application-test.js @@ -0,0 +1,11 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'meilisearch-admin/tests/helpers'; + +module('Unit | Route | application', function (hooks) { + setupTest(hooks); + + test('it exists', function (assert) { + let route = this.owner.lookup('route:application'); + assert.ok(route); + }); +});