From c21b680aea5f7ed835b1f88284abab19bee2d972 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 4 Jul 2018 21:42:03 +0200 Subject: Began throtteling integration --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/web.php b/routes/web.php index 7c1f90e..8fb9090 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,7 @@ Route::get('/', function () { }); Auth::routes(); -Route::group(['middleware' => ['auth']], function () { +Route::middleware('auth', 'throttle:30,1')->group(function () { Route::get('profile', 'UserController@Profile'); Route::get('avatar/{user_id}', 'ImageController@getAvatar'); Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); -- cgit v1.2.3