This commit is contained in:
Marcel Pociot
2020-05-03 22:10:34 +02:00
parent 7d0a570d85
commit 7821a2f172
6 changed files with 69 additions and 45 deletions

View File

@@ -27,15 +27,11 @@ class ListSitesController extends AdminController
public function handle(Request $request, ConnectionInterface $httpConnection)
{
try {
$sites = $this->getView($httpConnection, 'server.sites.index', [
'scheme' => $this->configuration->port() === 443 ? 'https' : 'http',
'configuration' => $this->configuration,
'sites' => $this->connectionManager->getConnections()
]);
} catch (\Exception $e) {
dump($e->getMessage());
}
$sites = $this->getView($httpConnection, 'server.sites.index', [
'scheme' => $this->configuration->port() === 443 ? 'https' : 'http',
'configuration' => $this->configuration,
'sites' => $this->connectionManager->getConnections()
]);
$httpConnection->send(
respond_html($sites)