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