diff --git a/assets/script.js b/assets/script.js index 7c86402..7b3271f 100644 --- a/assets/script.js +++ b/assets/script.js @@ -22,7 +22,7 @@ document.getElementById("myinput").onclick = function () { // data to be sent to the API var data = { // domain -- change here if you want to use your own domain - domain: "link.laavesh.co", + domain: "link.laavesh.xyz", originalURL: link, allowDuplicates: false, }; @@ -33,13 +33,13 @@ document.getElementById("myinput").onclick = function () { } // send the data to the API - fetch("https://api.short.cm/links/public", { + fetch("https://api.short.io/links/public", { method: "post", headers: { accept: "application/json", "Content-Type": "application/json", // API key -- change here if you want to use your own API key (public key) - authorization: "pk_ynFkEXQHXdWrijOF", + authorization: "pk_M8NSz2WK3m9gHdH2", }, body: JSON.stringify(data), }) diff --git a/index.html b/index.html index ee32566..307e5db 100644 --- a/index.html +++ b/index.html @@ -69,7 +69,7 @@
-

link.laavesh.co/

+

link.laavesh.xyz/

@@ -91,7 +91,7 @@
diff --git a/old.html b/old.html index 740f684..03f57e6 100644 --- a/old.html +++ b/old.html @@ -19,7 +19,7 @@

Shorten your link!

document.getElementById("myinput").onclick = function () { var link = document.getElementById("linkinput").value; var data = { - domain: "link.laavesh.co", + domain: "link.laavesh.xyz", originalURL: link, allowDuplicates: false, }; @@ -27,12 +27,12 @@

Shorten your link!

if (document.getElementById("pathinput").value != "") { data.path = document.getElementById("pathinput").value; } - fetch("https://api.short.cm/links/public", { + fetch("https://api.short.io/links/public", { method: "post", headers: { accept: "application/json", "Content-Type": "application/json", - authorization: "pk_ynFkEXQHXdWrijOF", + authorization: "pk_M8NSz2WK3m9gHdH2", }, body: JSON.stringify(data), })