Certificates section react work

This commit is contained in:
Jamie Curnow
2025-10-26 00:28:39 +10:00
parent 5b7013b8d5
commit bb6c9c8daf
24 changed files with 596 additions and 121 deletions

View File

@@ -4,7 +4,6 @@ import type { Certificate } from "./models";
export async function createCertificate(item: Certificate): Promise<Certificate> {
return await api.post({
url: "/nginx/certificates",
// todo: only use whitelist of fields for this data
data: item,
});
}

View File

@@ -1,10 +1,10 @@
import * as api from "./base";
export async function testHttpCertificate(domains: string[]): Promise<Record<string, string>> {
return await api.get({
return await api.post({
url: "/nginx/certificates/test-http",
params: {
domains: domains.join(","),
data: {
domains,
},
});
}