mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-22 06:03:10 +01:00
18 lines
296 B
TypeScript
18 lines
296 B
TypeScript
import * as api from "./base";
|
|
import { Certificate } from "./models";
|
|
|
|
export async function setCertificate(
|
|
id: number,
|
|
data: any,
|
|
): Promise<Certificate> {
|
|
if (data.id) {
|
|
delete data.id;
|
|
}
|
|
|
|
const { result } = await api.put({
|
|
url: `/certificates/${id}`,
|
|
data,
|
|
});
|
|
return result;
|
|
}
|