feat(backend): add DELETE /members/{id}
This commit is contained in:
parent
3aefe4fa88
commit
3b64ba33f6
4 changed files with 65 additions and 3 deletions
|
@ -27,6 +27,6 @@ export default async function fetchAPI<T>(
|
|||
});
|
||||
|
||||
const data = await resp.json();
|
||||
if (resp.status !== 200) throw data as APIError;
|
||||
if (resp.status < 200 || resp.status >= 300) throw data as APIError;
|
||||
return data as T;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue