From 318b4136b0137777713866e32b15918c7fdaba08 Mon Sep 17 00:00:00 2001 From: daragh Date: Sun, 18 Feb 2024 13:32:29 +0000 Subject: [PATCH] fix : correct api endpoints --- src/modify_ssh.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modify_ssh.js b/src/modify_ssh.js index 7068b66..4324d51 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('http://localhost:8087/ldap/ssh', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh/', { method: 'POST', body: JSON.stringify(request), mode: 'cors', @@ -45,7 +45,7 @@ async function add_key() { let request = {auth: {user: username, pass: password}, key: key}; try { - const response = await fetch('http://localhost:8087/ldap/ssh/add', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh/add', { 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('http://localhost:8087/ldap/ssh', { + const response = await fetch('https://api.account.skynet.ie/ldap/ssh/', { method: 'DELETE', body: JSON.stringify(request), mode: 'cors',