aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/web.php11
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
+});