From cb3164a13d52ed1a3b540117d96f731dbf07352c Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:27:43 +0530 Subject: [PATCH] change url path in ajax : suseendhiran --- app/views/status.ejs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/status.ejs b/app/views/status.ejs index 86570a0..18be85d 100644 --- a/app/views/status.ejs +++ b/app/views/status.ejs @@ -483,7 +483,7 @@ Last updated <%=date %> -
+
<% if ( down == 0) { %>

All systems operational

@@ -590,7 +590,7 @@ var api = $(evt.target).parent().parent("tr").find("td:nth-child(1)").text(); $.ajax({ type: "post", - url: "/api_monitor/api/SingleApiStatus", + url: "/api/SingleApiStatus", data: {api : api}, success: function(response) { if (response.success == true) @@ -601,11 +601,14 @@ if (response.Status == "Up") { var success = ' '+response.Status+'' + var status = '

All systems operational

' } else { var success = ' '+response.Status+'' + var status = '

Some systems are down

' } + $('#statusHeader').html(status); $(evt.target).parent().parent("tr").find("td:nth-child(2)").html(response.StatusCode); $(evt.target).parent().parent("tr").find("td:nth-child(3)").html(success); }