From a79179cef3bfdd90bc0d68d3f1482e48f4f6abce Mon Sep 17 00:00:00 2001 From: freek Date: Tue, 4 Dec 2018 10:11:53 +0100 Subject: [PATCH] wip --- src/WebSocketsServiceProvider.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/WebSocketsServiceProvider.php b/src/WebSocketsServiceProvider.php index 7a43888..6d3ed2e 100644 --- a/src/WebSocketsServiceProvider.php +++ b/src/WebSocketsServiceProvider.php @@ -61,11 +61,13 @@ class WebSocketsServiceProvider extends ServiceProvider protected function registerRoutes() { - Route::prefix(config('websockets.path'))->middleware(Authorize::class)->group(function () { - Route::get('/', ShowDashboard::class); - Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']); - Route::post('auth', AuthenticateDashboard::class); - Route::post('event', SendMessage::class); + Route::prefix(config('websockets.path'))->group(function() { + Route::middleware(Authorize::class)->group(function() { + Route::get('/', ShowDashboard::class); + Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']); + Route::post('auth', AuthenticateDashboard::class); + Route::post('event', SendMessage::class); + }); Route::post('statistics', [WebSocketStatisticsEntriesController::class, 'store']); });