Files
nginx-proxy-manager/frontend/src/api/backend/createProxyHost.ts
2025-10-02 08:12:36 +10:00

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,
});
}