Browse Source

Success message (stops curl hanging)

Owen Diffey 8 năm trước cách đây
mục cha
commit
860e8776ba
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app.js

+ 1 - 0
app.js

@@ -61,6 +61,7 @@ app.post("/", function(request, response) {
         var critical = true;
     }
     logToDiscord(config.get("alertDescription"), critical, [{name: "Name:", value: request.body.monitorFriendlyName, inline: false}, {name: "URL:", value: request.body.monitorURL, inline: false}, {name: "Status:", value: request.body.alertTypeFriendlyName, inline: false}]);
+    response.end('{"success" : "Logged Successfully", "status" : 200}');
 });
 
 app.listen(config.get("listenerPort"));