This commit is contained in:
Marcel Pociot 2018-11-22 22:09:54 +01:00
parent 9a2183f642
commit ef0d45fb6f
2 changed files with 0 additions and 17 deletions

View File

@ -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
];
}
}

View File

@ -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);