mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-29 18:42:28 +00:00
18 lines
334 B
TypeScript
18 lines
334 B
TypeScript
import * as api from "./base";
|
|
import { CertificateAuthority } from "./models";
|
|
|
|
export async function setCertificateAuthority(
|
|
id: number,
|
|
data: any,
|
|
): Promise<CertificateAuthority> {
|
|
if (data.id) {
|
|
delete data.id;
|
|
}
|
|
|
|
const { result } = await api.put({
|
|
url: `/certificate-authorities/${id}`,
|
|
data,
|
|
});
|
|
return result;
|
|
}
|