Render article

This commit is contained in:
cdricms
2025-02-21 20:21:56 +01:00
parent 4b005945b2
commit ae228710e1
6 changed files with 83 additions and 36 deletions

View File

@@ -48,9 +48,5 @@ export default async function request<T>(
const apiResponse: ApiResponse<T> = await response.json();
if (apiResponse.status === "Error") {
throw new Error(apiResponse.message || "An unexpected error occurred");
}
return apiResponse;
}