aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
authorMarvin Borner2018-07-07 00:20:06 +0200
committerMarvin Borner2018-07-07 00:20:06 +0200
commit60c973ed2a8e58cc7e9d7e6ca69e17f6ec023c32 (patch)
treebf6ffd3d655e3be3a5d7b18696cacfb107427861 /routes
parentefe4b98e6f3d5d63bc2da8110f474d6b7ec122df (diff)
Began public key "API"
Diffstat (limited to 'routes')
-rw-r--r--routes/web.php5
1 files changed, 3 insertions, 2 deletions
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');