mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 08:20:34 +00:00
Add UptimeRobot widget
This commit is contained in:
parent
82d2f08e8b
commit
e19dab3c5d
5 changed files with 136 additions and 0 deletions
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;
|
Loading…
Add table
Add a link
Reference in a new issue