mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 06:23:40 +01:00
21 lines
463 B
JavaScript
21 lines
463 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/v3/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
users: {
|
|
endpoint: "core/users?page_size=1",
|
|
},
|
|
login: {
|
|
endpoint: "events/events/per_month/?action=login&query={}",
|
|
},
|
|
login_failed: {
|
|
endpoint: "events/events/per_month/?action=login_failed&query={}",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|