Files
nginx-proxy-manager/frontend/src/api/backend/createProxyHost.ts
Jamie Curnow fadec9751e React
2025-10-02 08:10:42 +10:00

14 lines
345 B
TypeScript

import * as api from "./base";
import type { ProxyHost } from "./models";
export async function createProxyHost(item: ProxyHost, abortController?: AbortController): Promise<ProxyHost> {
return await api.post(
{
url: "/nginx/proxy-hosts",
// todo: only use whitelist of fields for this data
data: item,
},
abortController,
);
}