From 373a1636b2978e94094e5d9fe3f558ad2fcab1e8 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:11:43 +0530 Subject: [PATCH] susee:log --- app/views/module.ejs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/module.ejs b/app/views/module.ejs index e62293c..de32376 100644 --- a/app/views/module.ejs +++ b/app/views/module.ejs @@ -315,9 +315,12 @@ $(".fileName").click(function(){ $(".delete").click(function(){ data = $(this).attr('id').split("|"); + var getUrl = window.location; + path_name = getUrl.pathname.slice(0,-4)+'deletelog'; +alert(path_name) $.ajax({ type: "post", - url: "/api/deletelog", + url: path_name, data: {'file' : data[0] , 'folder' : data[1]}, success: function(response) { console.log(response);