blob: 11eaa5c71b891e26d5813fd5c8b8af97b26261e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| 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('profile', 'UserController@Profile');
Route::get('/', ['as' => 'writeMessage', 'uses' => 'SocketController@writeMessage']);
Route::post('avatar', 'UserController@updateAvatar');
Route::post('sendMessage', 'SocketController@sendMessage');
});
|