18 lines
483 B
TypeScript
18 lines
483 B
TypeScript
/*
|
|
|--------------------------------------------------------------------------
|
|
| Inertia Preloaded File
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Any code written inside this file will be executed during the application
|
|
| boot.
|
|
|
|
|
*/
|
|
|
|
import Inertia from '@ioc:EidelLev/Inertia';
|
|
|
|
Inertia.share({
|
|
errors: (ctx) => {
|
|
return ctx.session.flashMessages.get('errors');
|
|
},
|
|
}).version(() => Inertia.manifestFile('public/assets/manifest.json'));
|