Certificates react table basis

This commit is contained in:
Jamie Curnow
2025-10-02 08:12:33 +10:00
parent efcefe0c17
commit 058f49ceea
10 changed files with 271 additions and 7 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
import * as api from "./base";
import type { Certificate } from "./models";
export async function getCertificates(expand?: string[], params = {}): Promise<Certificate[]> {
export type CertificateExpansion = "owner" | "proxy_hosts" | "redirection_hosts" | "dead_hosts";
export async function getCertificates(expand?: CertificateExpansion[], params = {}): Promise<Certificate[]> {
return await api.get({
url: "/nginx/certificates",
params: {