mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-10 10:32:09 +08:00
Feature: Support pi-hole v6 (#3207)
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
import piholeProxyHandler from "./proxy";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/admin/api.php?{endpoint}&auth={key}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
summaryRaw: {
|
||||
endpoint: "summaryRaw",
|
||||
validate: ["dns_queries_today", "ads_blocked_today", "ads_percentage_today", "domains_being_blocked"],
|
||||
},
|
||||
},
|
||||
api: "{url}/api/{endpoint}",
|
||||
apiv5: "{url}/admin/api.php?{endpoint}&auth={key}",
|
||||
proxyHandler: piholeProxyHandler,
|
||||
};
|
||||
|
||||
export default widget;
|
||||
|
||||
Reference in New Issue
Block a user