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