mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 06:33:10 +01: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 },
|
|
});
|
|
}
|