followup for api_response changes.
This commit is contained in:
@@ -48,7 +48,7 @@ final class Index
|
||||
$response['backends'][] = $backend;
|
||||
}
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response, []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response);
|
||||
}
|
||||
|
||||
public static function getBackends(string|null $name = null, bool $blacklist = false): array
|
||||
|
||||
@@ -36,7 +36,7 @@ final class View
|
||||
],
|
||||
];
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, ['backend' => $response], []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, ['backend' => $response]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -314,6 +314,6 @@ final class Index
|
||||
$response['history'][] = $item;
|
||||
}
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response, []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,6 @@ final readonly class View
|
||||
],
|
||||
];
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, ['history' => $item], []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, ['history' => $item]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,6 @@ final class Env
|
||||
];
|
||||
}
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response, []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ final class Index
|
||||
$response['tasks'][] = $task;
|
||||
}
|
||||
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response, []);
|
||||
return api_response(HTTP_STATUS::HTTP_OK, $response);
|
||||
}
|
||||
|
||||
public static function formatTask(array $task): array
|
||||
|
||||
Reference in New Issue
Block a user