mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 11:50:09 +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,
|
|
},
|
|
});
|
|
}
|