Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7999b02e8 |
@@ -36,7 +36,7 @@ export async function fetchServerAPI<T>(
|
||||
}
|
||||
|
||||
if (response.headers.get('Content-Type')?.includes('application/json')) {
|
||||
return await response.json();
|
||||
return { data: await response.json() };
|
||||
}
|
||||
|
||||
return { message: await response.text() };
|
||||
|
||||
Reference in New Issue
Block a user