Feature: crowdsec widget (#3197)

This commit is contained in:
shamoon authored and GitHub committed 2024-03-28 13:39:40 -07:00
1 parent def9b27006
commit d4c0e482d3
8 files changed
+169

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import crowdsecProxyHandler from "./proxy";
const widget = {
api: "{url}/v1/{endpoint}",
loginURL: "{url}/v1/watchers/login",
proxyHandler: crowdsecProxyHandler,
mappings: {
alerts: {
endpoint: "alerts",
},
bans: {
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
},
},
};
export default widget;