diff options
author | Marvin Borner | 2018-07-07 16:13:20 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-07 16:13:20 +0200 |
commit | 84e758a59cea20508bad93a129acbad5d4474c5d (patch) | |
tree | 5e73aa7aa903e4e68ef40c681004bdc3bd979ae0 /routes | |
parent | 82fa40442ad56f7de3cb6984bfb187e429476c76 (diff) |
Added public/private key generation & insertion
Diffstat (limited to 'routes')
-rw-r--r-- | routes/web.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/web.php b/routes/web.php index 079960e..0cbb526 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,9 +15,10 @@ Route::middleware('auth', 'throttle:30') // throttle to 30 per minute Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); Route::get('avatar/{user_id}', 'ImageController@getAvatar'); Route::get('profile', 'UserController@Profile'); + Route::get('keys/cookie/public/', 'PublicKeyController@setUsersKeyCookie'); // actually it's a post but it has to be get (via cookie) => TODO: Route::get('keys/public/{user_id}', 'PublicKeyController@getUsersKey'); Route::post('avatar', 'UserController@updateAvatar'); - Route::post('keys/public/{user_id}', 'PublicKeyController@setUsersKey'); + Route::post('keys/public', 'PublicKeyController@setUsersKey'); Route::post('sendMessage', 'SocketController@sendMessage'); }); |