mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Update postrequest.js
This commit is contained in:
parent
2a295dfe32
commit
018b57e880
1 changed files with 4 additions and 1 deletions
|
@ -4,12 +4,15 @@ const axios = require("axios");
|
|||
class PostRequest extends NotificationProvider {
|
||||
name = "PostRequest";
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
|
||||
const okMsg = "Sent Successfully.";
|
||||
const url = notification.postrequestURL;
|
||||
|
||||
try {
|
||||
let config = {
|
||||
let config = {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": "Bearer " + notification.postrequestToken,
|
||||
|
|
Loading…
Reference in a new issue