feat(F-170): completed feature
This commit is contained in:
@@ -36,6 +36,7 @@ async function request<T>(method: string, path: string, body?: unknown): Promise
|
||||
);
|
||||
}
|
||||
|
||||
if (res.status === 204) return undefined as T;
|
||||
return res.json() as Promise<T>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user