define an api group as an example

This commit is contained in:
Taylor Otwell 2015-12-11 16:49:20 -06:00
parent fa3495a28d
commit b70dbaf7a1
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,10 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
],
'api' => [
'throttle:60,1'
],
];
/**

View File

@ -26,6 +26,6 @@
|
*/
Route::group(['middleware' => 'web'], function () {
Route::group(['middleware' => ['web']], function () {
//
});