blob: 7c0500f5b95c1668fc0819ae368e72c5b32bc60c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?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('writeMessage', ['as'=>'writeMessage','uses'=>'SocketController@writeMessage']);
Route::post('sendMessage', 'SocketController@sendMessage');
});
|