aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/web.php
diff options
context:
space:
mode:
authorMarvin Borner2018-07-04 21:42:03 +0200
committerMarvin Borner2018-07-04 21:42:03 +0200
commitc21b680aea5f7ed835b1f88284abab19bee2d972 (patch)
treee5ffefdf028ad6a9d88dc029968d56c617410dd2 /routes/web.php
parentefb0fcc78e289e54f6580a26bb1f2365d00f70e2 (diff)
Began throtteling integration
Diffstat (limited to 'routes/web.php')
-rw-r--r--routes/web.php2
1 files changed, 1 insertions, 1 deletions
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']);