wip
This commit is contained in:
parent
9a2183f642
commit
ef0d45fb6f
|
|
@ -1,15 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace BeyondCode\LaravelWebSockets\LaravelEcho\Http\Controllers;
|
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
|
|
||||||
class StatusController extends EchoController
|
|
||||||
{
|
|
||||||
public function __invoke(Request $request)
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'subscription_count' => 10
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -68,8 +68,6 @@ class Router
|
||||||
//TODO: add origin checker middleware
|
//TODO: add origin checker middleware
|
||||||
$this->get('/app/{appKey}', LaravelEcho\WebSocket\PusherServer::class);
|
$this->get('/app/{appKey}', LaravelEcho\WebSocket\PusherServer::class);
|
||||||
|
|
||||||
// TODO: fleshen out http API
|
|
||||||
$this->get('/apps/{appId}/status', LaravelEcho\Http\Controllers\StatusController::class);
|
|
||||||
$this->get('/apps/{appId}/channels', LaravelEcho\Http\Controllers\StatusController::class);
|
$this->get('/apps/{appId}/channels', LaravelEcho\Http\Controllers\StatusController::class);
|
||||||
$this->get('/apps/{appId}/channels/{channelName}', LaravelEcho\Http\Controllers\FetchChannel::class);
|
$this->get('/apps/{appId}/channels/{channelName}', LaravelEcho\Http\Controllers\FetchChannel::class);
|
||||||
$this->get('/apps/{appId}/channels/{channelName}/users', LaravelEcho\Http\Controllers\FetchUsers::class);
|
$this->get('/apps/{appId}/channels/{channelName}/users', LaravelEcho\Http\Controllers\FetchUsers::class);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue