followup.

This commit is contained in:
abdulmohsen
2024-03-05 19:22:45 +03:00
parent d7d62b622f
commit 42a6cdf4ac
6 changed files with 11 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ final class Index
$urlPath = $request->getUri()->getPath();
$response = [
'data' => [],
'backends' => [],
'links' => [
'self' => (string)$apiUrl,
],
@@ -45,7 +45,7 @@ final class Index
'self' => (string)$apiUrl->withPath($urlPath . '/' . $backend['name']),
];
$response['data'][] = $backend;
$response['backends'][] = $backend;
}
return api_response($response, HTTP_STATUS::HTTP_OK, []);