Certificates react table basis

This commit is contained in:
Jamie Curnow
2025-09-17 18:01:00 +10:00
parent efcefe0c17
commit 058f49ceea
10 changed files with 271 additions and 7 deletions

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: {