mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-11 21:05:15 +00:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
import * as api from "./base";
|
|
import type { HostExpansion } from "./expansions";
|
|
import type { Stream } from "./models";
|
|
|
|
export async function getStreams(expand?: HostExpansion[], params = {}): Promise<Stream[]> {
|
|
return await api.get({
|
|
url: "/nginx/streams",
|
|
params: {
|
|
expand: expand?.join(","),
|
|
...params,
|
|
},
|
|
});
|
|
}
|