Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit a79179c

Browse files
committed
wip
1 parent 4aab3d4 commit a79179c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/WebSocketsServiceProvider.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ public function register()
6161

6262
protected function registerRoutes()
6363
{
64-
Route::prefix(config('websockets.path'))->middleware(Authorize::class)->group(function () {
65-
Route::get('/', ShowDashboard::class);
66-
Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']);
67-
Route::post('auth', AuthenticateDashboard::class);
68-
Route::post('event', SendMessage::class);
64+
Route::prefix(config('websockets.path'))->group(function() {
65+
Route::middleware(Authorize::class)->group(function() {
66+
Route::get('/', ShowDashboard::class);
67+
Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']);
68+
Route::post('auth', AuthenticateDashboard::class);
69+
Route::post('event', SendMessage::class);
70+
});
6971

7072
Route::post('statistics', [WebSocketStatisticsEntriesController::class, 'store']);
7173
});

0 commit comments

Comments
 (0)