mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 20:00:12 +00:00
API lib cleanup, 404 hosts WIP
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import * as api from "./base";
|
||||
import type { Stream } from "./models";
|
||||
|
||||
export async function updateStream(item: Stream, abortController?: AbortController): Promise<Stream> {
|
||||
export async function updateStream(item: Stream): Promise<Stream> {
|
||||
// Remove readonly fields
|
||||
const { id, createdOn: _, modifiedOn: __, ...data } = item;
|
||||
|
||||
return await api.put(
|
||||
{
|
||||
url: `/nginx/streams/${id}`,
|
||||
data: data,
|
||||
},
|
||||
abortController,
|
||||
);
|
||||
return await api.put({
|
||||
url: `/nginx/streams/${id}`,
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user