From e4a48864ad69ec743db96c6ca34b2b4bd70cb9a2 Mon Sep 17 00:00:00 2001 From: daragh Date: Sun, 18 Feb 2024 13:34:31 +0000 Subject: [PATCH] fix : trailing slash --- src/modify_ssh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modify_ssh.js b/src/modify_ssh.js index 4324d51..94dd808 100644 --- a/src/modify_ssh.js +++ b/src/modify_ssh.js @@ -13,7 +13,7 @@ async function get_keys() { let password = document.getElementById("pass").value; let request = {auth: {user: username, pass: password}}; try { - const response = await fetch('https://api.account.skynet.ie/ldap/ssh/', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh', { method: 'POST', body: JSON.stringify(request), mode: 'cors', @@ -75,7 +75,7 @@ async function delete_key(row_idx,key) { let request = {auth: {user: username, pass: password}, key: key}; try { - const response = await fetch('https://api.account.skynet.ie/ldap/ssh/', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh', { method: 'DELETE', body: JSON.stringify(request), mode: 'cors',