From 9b9ea81206315d168133b86058ac4fc481fabc6e Mon Sep 17 00:00:00 2001 From: daragh Date: Sun, 31 Dec 2023 07:09:31 +0000 Subject: [PATCH] fix : removed testing api endpoints with actual --- src/ssh/ssh.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ssh/ssh.js b/src/ssh/ssh.js index 856ffe6..515c363 100644 --- a/src/ssh/ssh.js +++ b/src/ssh/ssh.js @@ -6,7 +6,7 @@ async function get_keys() { let request = {auth: {user: username, pass: password}}; try { - const response = await fetch('http://127.0.0.1:8087/ldap/ssh', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh', { method: 'POST', body: JSON.stringify(request), mode: 'cors', @@ -43,7 +43,7 @@ async function add_key() { return; } try { - const response = await fetch('http://127.0.0.1:8087/ldap/ssh/add', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh/add', { method: 'POST', body: JSON.stringify(request), mode: 'cors', @@ -73,7 +73,7 @@ async function delete_key(row_idx) { let password = document.getElementById("pass").value; let request = {auth: {user: username, pass: password}, key: key}; try { - const response = await fetch('http://127.0.0.1:8087/ldap/ssh', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh', { method: 'DELETE', body: JSON.stringify(request), mode: 'cors',