Commit b70dbaf7 authored by Taylor Otwell's avatar Taylor Otwell

define an api group as an example

parent fa3495a2
...@@ -28,6 +28,10 @@ class Kernel extends HttpKernel ...@@ -28,6 +28,10 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class, \App\Http\Middleware\VerifyCsrfToken::class,
], ],
'api' => [
'throttle:60,1'
],
]; ];
/** /**
......
...@@ -26,6 +26,6 @@ Route::get('/', function () { ...@@ -26,6 +26,6 @@ Route::get('/', function () {
| |
*/ */
Route::group(['middleware' => 'web'], function () { Route::group(['middleware' => ['web']], function () {
// //
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment