mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 11:50:09 +00:00
15 lines
380 B
TypeScript
15 lines
380 B
TypeScript
import * as api from "./base";
|
|
import type { Certificate } from "./models";
|
|
|
|
export async function uploadCertificate(
|
|
id: number,
|
|
certificate: string,
|
|
certificateKey: string,
|
|
intermediateCertificate?: string,
|
|
): Promise<Certificate> {
|
|
return await api.post({
|
|
url: `/nginx/certificates/${id}/upload`,
|
|
data: { certificate, certificateKey, intermediateCertificate },
|
|
});
|
|
}
|