From 60c973ed2a8e58cc7e9d7e6ca69e17f6ec023c32 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 7 Jul 2018 00:20:06 +0200 Subject: Began public key "API" --- routes/web.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'routes') diff --git a/routes/web.php b/routes/web.php index 851834e..b39b3f7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,9 +12,10 @@ Auth::routes(); Route::middleware('auth', 'throttle:30') // throttle to 30 per minute ->group(function () { - Route::get('profile', 'UserController@Profile'); - Route::get('avatar/{user_id}', 'ImageController@getAvatar'); Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); + Route::get('avatar/{user_id}', 'ImageController@getAvatar'); + Route::get('profile', 'UserController@Profile'); + Route::get('keys/public/{user_id}', 'PublicKeyController@getUsersKey'); Route::post('avatar', 'UserController@updateAvatar'); Route::post('sendMessage', 'SocketController@sendMessage'); -- cgit v1.2.3