homepage/src/widgets/crowdsec/widget.js
2024-07-29 10:45:08 +02:00

19 lines
380 B
JavaScript

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