mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-26 08:03:06 +01:00
- Added upstream objects
- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
This commit is contained in:
1 parent
b3ae2f4dbb
commit
5e5f0de0e2
82 files changed
+2209
-294
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import * as api from "./base";
|
||||
import { NginxTemplatesResponse } from "./responseTypes";
|
||||
|
||||
export async function getNginxTemplates(
|
||||
offset = 0,
|
||||
limit = 10,
|
||||
sort?: string,
|
||||
filters?: { [key: string]: string },
|
||||
abortController?: AbortController,
|
||||
): Promise<NginxTemplatesResponse> {
|
||||
const { result } = await api.get(
|
||||
{
|
||||
url: "nginx-templates",
|
||||
params: { limit, offset, sort, ...filters },
|
||||
},
|
||||
abortController,
|
||||
);
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user