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