Certificates react work

- renewal and download
- table columns rendering
- searching
- deleting
This commit is contained in:
Jamie Curnow committed 2025-10-27 18:08:37 +10:00
1 parent 7b5c70ed35
commit 0de26f2950
16 files changed
+381 -86

No files matched your search

@@ -1,8 +1,10 @@
import * as api from "./base";
import type { Binary } from "./responseTypes";
export async function downloadCertificate(id: number): Promise<Binary> {
return await api.get({
url: `/nginx/certificates/${id}/download`,
});
export async function downloadCertificate(id: number): Promise<void> {
await api.download(
{
url: `/nginx/certificates/${id}/download`,
},
`certificate-${id}.zip`,
);
}