- default routing to "/app/dashboard"
Some checks failed
CI Pipeline / japa-tests (push) Failing after 53s

- default route after login "/app/dashboard" in AuthController.ts
- npm updates
- corrected route in menu.ts
- better styling for listing datasets for editor and submitter in Index.vue
- personal setting to route "/settings/user"
This commit is contained in:
Kaimbacher 2023-12-01 10:44:19 +01:00
parent 6fef581dd0
commit 0d51002903
10 changed files with 117 additions and 103 deletions

View file

@ -31,10 +31,8 @@ Route.get('health', async ({ response }) => {
return report.healthy ? response.ok(report) : response.badRequest(report);
});
Route.get('/', async ({ view }) => {
return view.render('welcome');
}).as('dashboard2');
//oai:
// Route.get( '/oai', 'Oai/RequestController.index').as('oai');
Route.group(() => {
Route.get('/oai', 'Oai/OaiController.index').as('get');
@ -42,7 +40,20 @@ Route.group(() => {
}).as('oai');
// Route.inertia('/about', 'App');
//old solution:
// Route.get('/', async ({ view }) => {
// return view.render('welcome');
// }).as('dashboard2');
Route.get('/', async ({ response }) => {
return response.redirect().toRoute('app.dashboard');
}).as('dashboard');
Route.group(() => {
Route.get('/dashboard', async ({ inertia }) => {
return inertia.render('Dashboard');
}).as('dashboard');
Route.get('/', async ({ inertia }) => {
const users = await User.query().orderBy('login');
return inertia.render('App', {
@ -71,12 +82,7 @@ Route.group(() => {
}).as('register.store');
})
.prefix('app')
.as('app');
Route.get('/dashboard', async ({ inertia }) => {
return inertia.render('Dashboard');
})
.as('dashboard')
.as('app')
.middleware('auth');
Route.get('/map', async ({ inertia }) => {
@ -134,8 +140,8 @@ Route.group(() => {
// .middleware(['auth', 'can:dataset-list,dataset-publish']);
.middleware(['auth', 'is:administrator,moderator']);
Route.get('/edit-account-info', 'UsersController.accountInfo')
.as('admin.account.info')
Route.get('/settings/user', 'UsersController.accountInfo')
.as('settings.user')
.namespace('App/Controllers/Http/Admin')
.middleware(['auth']);