mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 03:40:10 +00:00
11 lines
290 B
TypeScript
11 lines
290 B
TypeScript
import * as api from "./base";
|
|
import type { Certificate } from "./models";
|
|
|
|
export async function createCertificate(item: Certificate): Promise<Certificate> {
|
|
return await api.post({
|
|
url: "/nginx/certificates",
|
|
// todo: only use whitelist of fields for this data
|
|
data: item,
|
|
});
|
|
}
|