Files
nginx-proxy-manager/frontend/src/api/backend/getStreams.ts
Jamie Curnow ebd9148813 React
2025-09-03 14:02:14 +10:00

15 lines
340 B
TypeScript

import * as api from "./base";
import type { Stream } from "./models";
export type StreamExpansion = "owner" | "certificate";
export async function getStreams(expand?: StreamExpansion[], params = {}): Promise<Stream[]> {
return await api.get({
url: "/nginx/streams",
params: {
expand: expand?.join(","),
...params,
},
});
}