wip
This commit is contained in:
parent
4aab3d441f
commit
a79179cef3
|
|
@ -61,11 +61,13 @@ class WebSocketsServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
protected function registerRoutes()
|
protected function registerRoutes()
|
||||||
{
|
{
|
||||||
Route::prefix(config('websockets.path'))->middleware(Authorize::class)->group(function () {
|
Route::prefix(config('websockets.path'))->group(function() {
|
||||||
Route::get('/', ShowDashboard::class);
|
Route::middleware(Authorize::class)->group(function() {
|
||||||
Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']);
|
Route::get('/', ShowDashboard::class);
|
||||||
Route::post('auth', AuthenticateDashboard::class);
|
Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']);
|
||||||
Route::post('event', SendMessage::class);
|
Route::post('auth', AuthenticateDashboard::class);
|
||||||
|
Route::post('event', SendMessage::class);
|
||||||
|
});
|
||||||
|
|
||||||
Route::post('statistics', [WebSocketStatisticsEntriesController::class, 'store']);
|
Route::post('statistics', [WebSocketStatisticsEntriesController::class, 'store']);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue