mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 05:31:50 +00:00
@@ -1,4 +1,5 @@
|
||||
import { deleteZeroTrustRule, getZeroTrustRules } from "./lib/api.js";
|
||||
import { notifyWebhook } from "./lib/helpers.js";
|
||||
|
||||
const { result: rules } = await getZeroTrustRules();
|
||||
const cgpsRule = rules.find(({ name }) => name === "CGPS Filter Lists");
|
||||
@@ -14,3 +15,5 @@ const cgpsRule = rules.find(({ name }) => name === "CGPS Filter Lists");
|
||||
console.log(`Deleting rule ${cgpsRule.name}...`);
|
||||
await deleteZeroTrustRule(cgpsRule.id);
|
||||
})();
|
||||
// Send a notification to the webhook
|
||||
await notifyWebhook("CF Gateway Rule Create script finished running");
|
||||
|
||||
Reference in New Issue
Block a user