fix : removed testing api endpoints with actual
This commit is contained in:
parent
128794648c
commit
9b9ea81206
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ async function get_keys() {
|
||||||
let request = {auth: {user: username, pass: password}};
|
let request = {auth: {user: username, pass: password}};
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
@ -43,7 +43,7 @@ async function add_key() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
@ -73,7 +73,7 @@ async function delete_key(row_idx) {
|
||||||
let password = document.getElementById("pass").value;
|
let password = document.getElementById("pass").value;
|
||||||
let request = {auth: {user: username, pass: password}, key: key};
|
let request = {auth: {user: username, pass: password}, key: key};
|
||||||
try {
|
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',
|
method: 'DELETE',
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
|
Loading…
Reference in a new issue