mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-15 03:12:34 +00:00
React
This commit is contained in:
13
frontend/src/api/backend/createAccessList.ts
Normal file
13
frontend/src/api/backend/createAccessList.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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,
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user