mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-19 11:09:50 +00:00
20 lines
446 B
JavaScript
20 lines
446 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",
|
|
},
|
|
login_failed: {
|
|
endpoint: "events/events/per_month/?action=login_failed",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|