mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-21 11:30:11 +00:00
11 lines
265 B
TypeScript
11 lines
265 B
TypeScript
import * as api from "./base";
|
|
import type { Stream } from "./models";
|
|
|
|
export async function createStream(item: Stream): Promise<Stream> {
|
|
return await api.post({
|
|
url: "/nginx/streams",
|
|
// todo: only use whitelist of fields for this data
|
|
data: item,
|
|
});
|
|
}
|