mirror of
https://github.com/khairul169/garage-webui.git
synced 2026-09-23 20:37:40 +07:00
feat: add keys & bucket permissions management
This commit is contained in:
+3
-1
@@ -29,7 +29,9 @@ const api = {
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
throw new Error(res.statusText);
|
||||
const json = await res.json().catch(() => {});
|
||||
const message = json?.message || res.statusText;
|
||||
throw new Error(message);
|
||||
}
|
||||
|
||||
const isJson = res.headers
|
||||
|
||||
Reference in New Issue
Block a user