fixed route handling. added lucid with sqlite support
This commit is contained in:
@@ -8,10 +8,11 @@
|
||||
|
|
||||
*/
|
||||
|
||||
import Inertia from '@ioc:EidelLev/Inertia';
|
||||
import Inertia from '@ioc:EidelLev/Inertia'
|
||||
|
||||
Inertia.share({
|
||||
errors: (ctx) => {
|
||||
return ctx.session.flashMessages.get('errors');
|
||||
return ctx.session.flashMessages.get('errors')
|
||||
},
|
||||
}).version(() => Inertia.manifestFile('public/assets/manifest.json'));
|
||||
request: ({ request }) => request,
|
||||
}).version(() => Inertia.manifestFile('public/assets/manifest.json'))
|
||||
|
||||
@@ -28,9 +28,8 @@ Route.get('/login', async({inertia}) =>{
|
||||
return inertia.render('Login')
|
||||
})
|
||||
|
||||
Route.get('/events', async({ inertia, request }) => {
|
||||
return inertia.render('Events/EventsList', {
|
||||
route: request.url() })
|
||||
Route.get('/events', async({ inertia }) => {
|
||||
return inertia.render('Events/EventsList')
|
||||
})
|
||||
|
||||
Route.get('/users', async({inertia}) => {
|
||||
|
||||
Reference in New Issue
Block a user