mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-15 14:35:55 +00:00
Use toArray representation of sites for the server. Fixes #44
This commit is contained in:
@@ -25,7 +25,12 @@ class ListSitesController extends AdminController
|
|||||||
$sites = $this->getView($httpConnection, 'server.sites.index', [
|
$sites = $this->getView($httpConnection, 'server.sites.index', [
|
||||||
'scheme' => $this->configuration->port() === 443 ? 'https' : 'http',
|
'scheme' => $this->configuration->port() === 443 ? 'https' : 'http',
|
||||||
'configuration' => $this->configuration,
|
'configuration' => $this->configuration,
|
||||||
'sites' => $this->connectionManager->getConnections(),
|
'sites' => collect($this->connectionManager->getConnections())->map(function ($site, $siteId) {
|
||||||
|
$site = $site->toArray();
|
||||||
|
$site['id'] = $siteId;
|
||||||
|
|
||||||
|
return $site;
|
||||||
|
})->values(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$httpConnection->send(
|
$httpConnection->send(
|
||||||
|
|||||||
Reference in New Issue
Block a user