From 0a11d1058cb96801dce64d035fd1e269976793a8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 7 Jul 2018 13:13:44 +0200 Subject: Added public key insert route --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/web.php b/routes/web.php index b39b3f7..370fbb9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,7 +10,7 @@ | */ Auth::routes(); -Route::middleware('auth', 'throttle:30') // throttle to 30 per minute +Route::middleware('auth', 'throttle:30000') // throttle to 30 per minute ->group(function () { Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); Route::get('avatar/{user_id}', 'ImageController@getAvatar'); @@ -18,5 +18,6 @@ Route::middleware('auth', 'throttle:30') // throttle to 30 per minute Route::get('keys/public/{user_id}', 'PublicKeyController@getUsersKey'); Route::post('avatar', 'UserController@updateAvatar'); + Route::post('keys/public/{user_id}', 'PublicKeyController@setUsersKey'); Route::post('sendMessage', 'SocketController@sendMessage'); }); -- cgit v1.2.3