diff options
author | Marvin Borner | 2018-06-30 23:44:50 +0200 |
---|---|---|
committer | Marvin Borner | 2018-06-30 23:44:50 +0200 |
commit | b1c501e2f239ef6dcbf5e55e403834d793c6a0f6 (patch) | |
tree | 4532adc1e40f0da7580132b2a82c67c946a478f3 /routes/web.php | |
parent | 70233ba2d306019d415b94e270d3a90672236544 (diff) |
Finished websocket integration
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/routes/web.php b/routes/web.php index 810aa34..7c0500f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,4 @@ <?php - /* |-------------------------------------------------------------------------- | Web Routes @@ -10,7 +9,12 @@ | 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'); +});
\ No newline at end of file |