feat: Aggiunta route per ottenere un nuovo CSRF

This commit is contained in:
Maicol Battistini 2022-03-10 14:43:59 +01:00
parent de7d6db03b
commit 8d7a4183a8
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
1 changed files with 4 additions and 0 deletions

View File

@ -26,3 +26,7 @@ JsonApiRoute::server('v1')
Route::get('modules', [Controller::class, 'getModules'])
->name('modules');
Route::get('refresh_csrf', static fn() => response()->json(csrf_token()))
->middleware('web')
->name('csrf.renew');