work on jwt auth
Some checks failed
CI / Lint (push) Failing after 14m49s
CI / Test (push) Failing after 7m55s

This commit is contained in:
2025-01-08 16:49:27 +01:00
parent cf15e3beb3
commit feef600052
14 changed files with 103 additions and 18 deletions

10
app/routes/application.js Normal file
View File

@@ -0,0 +1,10 @@
import Route from '@ember/routing/route';
import { inject } from '@ember/service';
export default class ApplicationRoute extends Route {
@inject session;
async beforeModel() {
await this.session.setup();
}
}

View File

@@ -0,0 +1,10 @@
import Route from '../authenticated';
import { service } from '@ember/service';
export default class EditionsRoute extends Route {
@service store;
model() {
return this.store.findAll('edition');
}
}

View File

@@ -0,0 +1,10 @@
import Route from '../authenticated';
import { service } from '@ember/service';
export default class VenuesRoute extends Route {
@service store;
model() {
return this.store.findAll('venue');
}
}

10
app/routes/login.js Normal file
View File

@@ -0,0 +1,10 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class LoginRoute extends Route {
@service session;
beforeModel(transition) {
this.get('session').prohibitAuthentication('index');
}
}