This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 147
147
148
148
'websocket ' => \BeyondCode \LaravelWebSockets \WebSockets \WebSocketHandler::class,
149
149
150
+ 'trigger_event ' => \BeyondCode \LaravelWebSockets \HttpApi \Controllers \TriggerEventController::class,
151
+
152
+ 'fetch_channels ' => \BeyondCode \LaravelWebSockets \HttpApi \Controllers \FetchChannelsController::class,
153
+
154
+ 'fetch_channel ' => \BeyondCode \LaravelWebSockets \HttpApi \Controllers \FetchChannelController::class,
155
+
156
+ 'fetch_users ' => \BeyondCode \LaravelWebSockets \HttpApi \Controllers \FetchUsersController::class,
157
+
150
158
],
151
159
152
160
/*
Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ public function routes()
61
61
{
62
62
$ this ->get ('/app/{appKey} ' , config ('websockets.handlers.websocket ' , WebSocketHandler::class));
63
63
64
- $ this ->post ('/apps/{appId}/events ' , TriggerEventController::class);
65
- $ this ->get ('/apps/{appId}/channels ' , FetchChannelsController::class);
66
- $ this ->get ('/apps/{appId}/channels/{channelName} ' , FetchChannelController::class);
67
- $ this ->get ('/apps/{appId}/channels/{channelName}/users ' , FetchUsersController::class);
64
+ $ this ->post ('/apps/{appId}/events ' , config ( ' websockets.handlers.trigger_event ' , TriggerEventController::class) );
65
+ $ this ->get ('/apps/{appId}/channels ' , config ( ' websockets.handlers.fetch_channels ' , FetchChannelsController::class) );
66
+ $ this ->get ('/apps/{appId}/channels/{channelName} ' , config ( ' websockets.handlers.fetch_channel ' , FetchChannelController::class) );
67
+ $ this ->get ('/apps/{appId}/channels/{channelName}/users ' , config ( ' websockets.handlers.fetch_users ' , FetchUsersController::class) );
68
68
69
69
$ this ->customRoutes ->each (function ($ action , $ uri ) {
70
70
$ this ->get ($ uri , $ action );
You can’t perform that action at this time.
0 commit comments