mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-03 11:45:51 +01:00
16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
import * as api from "./base";
|
|
import type { Stream } from "./models";
|
|
|
|
export async function updateStream(item: Stream, abortController?: AbortController): Promise<Stream> {
|
|
// Remove readonly fields
|
|
const { id, createdOn: _, modifiedOn: __, ...data } = item;
|
|
|
|
return await api.put(
|
|
{
|
|
url: `/nginx/streams/${id}`,
|
|
data: data,
|
|
},
|
|
abortController,
|
|
);
|
|
}
|