diff options
author | Marvin Borner | 2018-07-01 12:13:36 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-01 12:13:36 +0200 |
commit | e7307d3241fb1f31a10ef92565c17b224d5983f0 (patch) | |
tree | 94f9f60fdd03f214306dcbf81ea57a0bade2df60 /routes/web.php | |
parent | f5500ae2c3c789a99674cd3e5b62054f1768423d (diff) |
Added user avatars
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/routes/web.php b/routes/web.php index 7c0500f..11eaa5c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -8,13 +8,16 @@ | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | -*/ + */ Route::get('/', function () { return view('welcome'); }); Auth::routes(); -Route::group(['middleware' => ['auth']], function() { - Route::get('writeMessage', ['as'=>'writeMessage','uses'=>'SocketController@writeMessage']); +Route::group(['middleware' => ['auth']], function () { + Route::get('profile', 'UserController@Profile'); + Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); + + Route::post('avatar', 'UserController@updateAvatar'); Route::post('sendMessage', 'SocketController@sendMessage'); -});
\ No newline at end of file +}); |