Files
nginx-proxy-manager/frontend/src/api/npm/getCertificate.ts
T
2023-01-16 15:50:40 +10:00

14 lines
262 B
TypeScript

import * as api from "./base";
import { Certificate } from "./models";
export async function getCertificate(
id: number,
params = {},
): Promise<Certificate> {
const { result } = await api.get({
url: `/certificates/${id}`,
params,
});
return result;
}