changed api_response signature
This commit is contained in:
@@ -48,7 +48,7 @@ final class Index
|
||||
$response['backends'][] = $backend;
|
||||
}
|
||||
|
||||
return api_response($response, HTTP_STATUS::HTTP_OK, []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response, []);
|
||||
}
|
||||
|
||||
public static function getBackends(string|null $name = null, bool $blacklist = false): array
|
||||
|
||||
@@ -35,8 +35,8 @@ final class View
|
||||
'list' => (string)$apiUrl->withPath(parseConfigValue(self::URL)),
|
||||
],
|
||||
];
|
||||
|
||||
return api_response(['backend' => $response], HTTP_STATUS::HTTP_OK, []);
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, ['backend' => $response], []);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user