Implement router provisioning lifecycle and deployment UI

This commit is contained in:
litoral05
2026-05-06 10:22:21 +01:00
parent 20a0dbe794
commit 90bfc090bd
21 changed files with 1380 additions and 268 deletions
+16 -1
View File
@@ -37,4 +37,19 @@ export async function apiPost<TResponse, TBody>(
}
return response.json();
}
}
export async function apiDelete(path: string): Promise<void> {
const response = await fetch(`${API_BASE}${path}`, {
method: "DELETE",
headers: {
"X-API-Key": API_KEY,
},
});
if (!response.ok) {
const error = await response.json().catch(() => null);
throw new Error(error?.error || `API error ${response.status}`);
}
}