From aa73af3be51f6e36ea9ea5a1f78ac18c0b2a352c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 1 Jul 2018 12:45:00 +0200 Subject: Better avatar requests --- routes/web.php | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/web.php') diff --git a/routes/web.php b/routes/web.php index 11eaa5c..7c1f90e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,6 +16,7 @@ Route::get('/', function () { Auth::routes(); Route::group(['middleware' => ['auth']], function () { Route::get('profile', 'UserController@Profile'); + Route::get('avatar/{user_id}', 'ImageController@getAvatar'); Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']); Route::post('avatar', 'UserController@updateAvatar'); -- cgit v1.2.3