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