2022-09-26 12:04:37 +03:00
|
|
|
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
2022-09-25 17:42:16 -07:00
|
|
|
|
|
|
|
const widget = {
|
|
|
|
api: "{url}/api/v3/{endpoint}",
|
|
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
|
|
|
|
mappings: {
|
2022-09-26 12:04:37 +03:00
|
|
|
users: {
|
|
|
|
endpoint: "core/users?page_size=1",
|
2022-09-25 17:42:16 -07:00
|
|
|
},
|
2022-09-26 12:04:37 +03:00
|
|
|
login: {
|
|
|
|
endpoint: "events/events/per_month/?action=login&query={}",
|
2022-09-25 17:42:16 -07:00
|
|
|
},
|
2022-09-26 12:04:37 +03:00
|
|
|
login_failed: {
|
|
|
|
endpoint: "events/events/per_month/?action=login_failed&query={}",
|
2022-09-25 17:42:16 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default widget;
|