Files
nginx-proxy-manager/frontend/src/api/backend/getStreams.ts
Jamie Curnow fadec9751e React
2025-10-02 08:10:42 +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,
},
});
}