Explorar el Código

Success message (stops curl hanging)

Owen Diffey hace 8 años
padre
commit
860e8776ba
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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"));