Files
homepage-Mirror/src/widgets/crowdsec/widget.js
2025-11-16 16:38:55 -08:00

22 lines
432 B
JavaScript

import crowdsecProxyHandler from "./proxy";
const widget = {
api: "{url}/v1/{endpoint}",
loginURL: "{url}/v1/watchers/login",
proxyHandler: crowdsecProxyHandler,
mappings: {
alerts: {
endpoint: "alerts",
},
alerts24h: {
endpoint: "alerts?limit=0&since=24h",
},
bans: {
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
},
},
};
export default widget;