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

14 lines
382 B
TypeScript

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