Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Kernel.php
Show All 34 Lines | protected $middlewareGroups = [ | ||||
// \Illuminate\Session\Middleware\StartSession::class, | // \Illuminate\Session\Middleware\StartSession::class, | ||||
// \Illuminate\Session\Middleware\AuthenticateSession::class, | // \Illuminate\Session\Middleware\AuthenticateSession::class, | ||||
// \Illuminate\View\Middleware\ShareErrorsFromSession::class, | // \Illuminate\View\Middleware\ShareErrorsFromSession::class, | ||||
// \App\Http\Middleware\VerifyCsrfToken::class, | // \App\Http\Middleware\VerifyCsrfToken::class, | ||||
// \Illuminate\Routing\Middleware\SubstituteBindings::class, | // \Illuminate\Routing\Middleware\SubstituteBindings::class, | ||||
], | ], | ||||
'api' => [ | 'api' => [ | ||||
'throttle:120,1', | //'throttle:120,1', | ||||
machniak: I guess we should specify different limits for the PolicyController routes. | |||||
Done Inline ActionsI had not found how to actually do that. vanmeeuwen: I had not found how to actually do that. | |||||
Not Done Inline ActionsI've found it could be done per route like this Route::group(['prefix' => 'api', 'middleware' => 'throttle:3,10'], function () { or probably just create a seaparate middleware label for these heavy APIs. https://laravel.com/docs/6.x/middleware#assigning-middleware-to-routes machniak: I've found it could be done per route like this `Route::group(['prefix' => 'api', 'middleware'… | |||||
Done Inline ActionsI reckon too that our internal infrastructure is not supposed to be limited at this level, at all. vanmeeuwen: I reckon too that our internal infrastructure is not supposed to be limited at this level, at… | |||||
'bindings', | 'bindings', | ||||
], | ], | ||||
]; | ]; | ||||
/** | /** | ||||
* The application's route middleware. | * The application's route middleware. | ||||
* | * | ||||
* These middleware may be assigned to groups or used individually. | * These middleware may be assigned to groups or used individually. | ||||
Show All 34 Lines |
I guess we should specify different limits for the PolicyController routes.