API lib cleanup, 404 hosts WIP

This commit is contained in:
Jamie Curnow
2025-09-21 17:16:46 +10:00
parent 058f49ceea
commit 54e036276a
76 changed files with 921 additions and 544 deletions

View File

@@ -5,13 +5,9 @@ export async function validateCertificate(
certificate: string,
certificateKey: string,
intermediateCertificate?: string,
abortController?: AbortController,
): Promise<ValidatedCertificateResponse> {
return await api.post(
{
url: "/nginx/certificates/validate",
data: { certificate, certificateKey, intermediateCertificate },
},
abortController,
);
return await api.post({
url: "/nginx/certificates/validate",
data: { certificate, certificateKey, intermediateCertificate },
});
}