aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/web.php
diff options
context:
space:
mode:
authorMarvin Borner2018-07-01 12:45:00 +0200
committerMarvin Borner2018-07-01 12:45:00 +0200
commitaa73af3be51f6e36ea9ea5a1f78ac18c0b2a352c (patch)
tree3886430ea25457ca4ee72cb26d3f0c0740957dcb /routes/web.php
parente7307d3241fb1f31a10ef92565c17b224d5983f0 (diff)
Better avatar requests
Diffstat (limited to 'routes/web.php')
-rw-r--r--routes/web.php1
1 files changed, 1 insertions, 0 deletions
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');