mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-14 10:52:34 +00:00
15 lines
340 B
TypeScript
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,
|
|
},
|
|
});
|
|
}
|