From e7307d3241fb1f31a10ef92565c17b224d5983f0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 1 Jul 2018 12:13:36 +0200 Subject: Added user avatars --- routes/web.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'routes/web.php') 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 +}); -- cgit v1.2.3