mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add UptimeRobot widget
This commit is contained in:
20
src/widgets/uptimerobot/widget.js
Normal file
20
src/widgets/uptimerobot/widget.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/v2/{endpoint}?api_key={key}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
getmonitors: {
|
||||
method: "POST",
|
||||
endpoint: "getMonitors",
|
||||
body: 'format=json&logs=1',
|
||||
headers: {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
"cache-control": "no-cache"
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
||||
Reference in New Issue
Block a user