mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 00:17:14 +02:00
Merge branch 'fix-change-access-directive' into develop
This commit is contained in:
@@ -2961,6 +2961,31 @@ export class API {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* ipAllowList is the API for IP Allow List related operations.
|
||||
*/
|
||||
ipAllowList = {
|
||||
/**
|
||||
* Get IP allow list entries for a specific proxy configuration.
|
||||
*
|
||||
* @param {string} proxyConfigID
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
getForProxyConfig: async (proxyConfigID) => {
|
||||
return await getJSON(this.getPath(`/ip-allow-list/proxy-config/${proxyConfigID}`));
|
||||
},
|
||||
|
||||
/**
|
||||
* Clear all entries for a specific proxy configuration.
|
||||
*
|
||||
* @param {string} proxyConfigID
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
clearForProxyConfig: async (proxyConfigID) => {
|
||||
return await deleteJSON(this.getPath(`/ip-allow-list/clear-proxy-config/${proxyConfigID}`));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* import is for importing assets, landing pages and etc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user