You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
364 B
19 lines
364 B
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;
|