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

14 lines
348 B
TypeScript

import * as api from "./base";
import type { HostExpansion } from "./expansions";
import type { Stream } from "./models";
export async function getStream(id: number, expand?: HostExpansion[], params = {}): Promise<Stream> {
return await api.get({
url: `/nginx/streams/${id}`,
params: {
expand: expand?.join(","),
...params,
},
});
}