diff options
Diffstat (limited to 'routes/api.php')
-rw-r--r-- | routes/api.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/routes/api.php b/routes/api.php index c641ca5..a349a47 100644 --- a/routes/api.php +++ b/routes/api.php @@ -11,8 +11,10 @@ use Illuminate\Http\Request; | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | -*/ + */ -Route::middleware('auth:api')->get('/user', function (Request $request) { - return $request->user(); +Route::middleware('auth:api', 'throttle:30')->group(function() { + Route::get('/user', function (Request $request) { + return $request->user(); + }); }); |