mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-05 10:22:53 +00:00
14 lines
382 B
TypeScript
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,
|
|
},
|
|
});
|
|
}
|