mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-14 19:02:35 +00:00
14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
import * as api from "./base";
|
|
import type { AccessList } from "./models";
|
|
|
|
export async function createAccessList(item: AccessList, abortController?: AbortController): Promise<AccessList> {
|
|
return await api.post(
|
|
{
|
|
url: "/nginx/access-lists",
|
|
// todo: only use whitelist of fields for this data
|
|
data: item,
|
|
},
|
|
abortController,
|
|
);
|
|
}
|