mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 13:55:14 +00:00
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
import * as api from "./base";
|
|
import type { ProxyHostExpansion } from "./expansions";
|
|
import type { ProxyHost } from "./models";
|
|
|
|
export async function getProxyHosts(expand?: ProxyHostExpansion[], params = {}): Promise<ProxyHost[]> {
|
|
return await api.get({
|
|
url: "/nginx/proxy-hosts",
|
|
params: {
|
|
expand: expand?.join(","),
|
|
...params,
|
|
},
|
|
});
|
|
}
|