mirror of
https://github.com/devfake/flox.git
synced 2024-11-14 22:22:39 +01:00
disable csrf (#68)
This commit is contained in:
parent
718dac53d5
commit
342683adeb
@ -28,7 +28,6 @@ class Kernel extends HttpKernel
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
@ -52,5 +51,6 @@ class Kernel extends HttpKernel
|
||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'csrf' => \App\Http\Middleware\VerifyCsrfToken::class,
|
||||
];
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
Route::group(['middleware' => 'auth'], function() {
|
||||
Route::get('/export', 'ExportImportController@export');
|
||||
Route::post('/import', 'ExportImportController@import');
|
||||
Route::post('/import', 'ExportImportController@import')->middleware('csrf');
|
||||
|
||||
Route::get('/check-update', 'SettingController@checkForUpdate');
|
||||
Route::get('/version', 'SettingController@getVersion');
|
||||
@ -31,10 +31,10 @@
|
||||
Route::patch('/toggle-episode/{id}', 'ItemController@toggleEpisode');
|
||||
Route::patch('/toggle-season', 'ItemController@toggleSeason');
|
||||
Route::patch('/change-rating/{itemId}', 'ItemController@changeRating');
|
||||
Route::delete('/remove/{itemId}', 'ItemController@remove');
|
||||
Route::delete('/remove/{itemId}', 'ItemController@remove')->middleware('csrf');
|
||||
|
||||
Route::get('/userdata', 'UserController@getUserData');
|
||||
Route::patch('/userdata', 'UserController@changeUserData');
|
||||
Route::patch('/userdata', 'UserController@changeUserData')->middleware('csrf');
|
||||
|
||||
Route::get('/search-tmdb', 'TMDBController@search');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user