define an api group as an example
This commit is contained in:
@@ -28,6 +28,10 @@ class Kernel extends HttpKernel
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
'throttle:60,1'
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,6 @@ Route::get('/', function () {
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group(['middleware' => 'web'], function () {
|
||||
Route::group(['middleware' => ['web']], function () {
|
||||
//
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user