Implements certificate delete ui

This commit is contained in:
Jamie Curnow committed 2024-09-15 23:00:49 +10:00
1 parent d2048e540d
commit 1d5f390f9b
7 files changed
+68 -2

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import * as api from "./base";
export async function deleteCertificate(
id: number,
abortController?: AbortController,
): Promise<boolean> {
const { result } = await api.del(
{
url: `/certificates/${id}`,
},
abortController,
);
return result;
}