This commit is contained in:
freek 2018-11-26 00:52:52 +01:00
parent ffe6cc19b4
commit 9dfa63ca3a
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,9 @@
<?php
Route::get('/', 'ShowConsole');
Route::post('/auth', 'AuthenticateConsole');
Route::post('/event', 'SendMessage');
use BeyondCode\LaravelWebsockets\Http\Controllers\AuthenticateConsole;
use BeyondCode\LaravelWebsockets\Http\Controllers\SendMessage;
use BeyondCode\LaravelWebsockets\Http\Controllers\ShowConsole;
Route::get('/', ShowConsole::class);
Route::post('/auth', AuthenticateConsole::class);
Route::post('/event', SendMessage::class);

View File

@ -39,9 +39,8 @@ class WebSocketsServiceProvider extends ServiceProvider
protected function routeConfiguration()
{
return [
'namespace' => 'BeyondCode\LaravelWebSockets\Http\Controllers',
'prefix' => config('websockets.dashboard.path'),
'middleware' => 'websockets'
'middleware' => 'websockets',
];
}