Files
nginx-proxy-manager/frontend/src/api/backend/getCertificates.ts
2025-10-02 08:12:36 +10:00

14 lines
367 B
TypeScript

import * as api from "./base";
import type { CertificateExpansion } from "./expansions";
import type { Certificate } from "./models";
export async function getCertificates(expand?: CertificateExpansion[], params = {}): Promise<Certificate[]> {
return await api.get({
url: "/nginx/certificates",
params: {
expand: expand?.join(","),
...params,
},
});
}