fix : trailing slash
This commit is contained in:
parent
318b4136b0
commit
e4a48864ad
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ async function get_keys() {
|
||||||
let password = document.getElementById("pass").value;
|
let password = document.getElementById("pass").value;
|
||||||
let request = {auth: {user: username, pass: password}};
|
let request = {auth: {user: username, pass: password}};
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
@ -75,7 +75,7 @@ async function delete_key(row_idx,key) {
|
||||||
let request = {auth: {user: username, pass: password}, key: key};
|
let request = {auth: {user: username, pass: password}, key: key};
|
||||||
|
|
||||||
try {
|
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',
|
method: 'DELETE',
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
|
Loading…
Reference in a new issue