feat: resource-group-management
This commit is contained in:
1 parent
ff870630fa
commit
c5a020c65c
2 files changed
+2
-2
No files matched your search
@@ -38,7 +38,7 @@ export const fetchAdminAPI = async <T = any>(
|
||||
const contentType = response.headers.get("Content-Type");
|
||||
|
||||
// Parse response based on content type
|
||||
if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) {
|
||||
if (contentType?.includes("application/json")) {
|
||||
const result = await response.json();
|
||||
return result;
|
||||
} else {
|
||||
|
||||
@@ -46,7 +46,7 @@ export const fetchAPI = async <T = any>(
|
||||
const contentType = response.headers.get("Content-Type");
|
||||
|
||||
// Parse response based on content type
|
||||
if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) {
|
||||
if (contentType?.includes("application/json")) {
|
||||
const result = await response.json();
|
||||
return result;
|
||||
} else if (contentType && contentType.includes("text/event-stream")) {
|
||||
|
||||
Reference in new issue
Block a user