1
0
mirror of https://gitlab.com/2-chainz/2chainz.git synced 2025-07-26 08:11:22 +00:00

get everything working together kinda

This commit is contained in:
2025-05-23 13:53:40 -06:00
parent 5687871b86
commit a683fceb10
4 changed files with 43 additions and 32 deletions

View File

@@ -109,8 +109,8 @@
<p>
send a <code>get</code> request to
<code
><a href="https://chainz-rest.azurewebsites.net/quote"
>https://chainz-rest.azurewebsites.net/quote</a
><a href="https://chainz.ansonbiggs.com/api/quote"
>https://chainz.ansonbiggs.com/api/quote</a
></code
>
</p>
@@ -132,8 +132,8 @@
>
and is subject to change. An example return from
<code>
<a href="https://chainz-rest.azurewebsites.net/quote?batch=2"
>https://chainz-rest.azurewebsites.net/quote?batch=2</a
<a href="https://chainz.ansonbiggs.com/api/quote?batch=2"
>https://chainz.ansonbiggs.com/api/quote?batch=2</a
></code
>
</p>
@@ -160,8 +160,8 @@
<p>
send a <code>get</code> request to
<code
><a href="https://chainz-rest.azurewebsites.net/alias"
>https://chainz-rest.azurewebsites.net/alias</a
><a href="https://chainz.ansonbiggs.com/api/alias"
>https://chainz.ansonbiggs.com/api/alias</a
></code
>
</p>
@@ -275,7 +275,7 @@
getQuote();
function getQuote() {
fetch("https://chainz-rest.azurewebsites.net/quote", { method: "GET" })
fetch("/api/quote", { method: "GET" })
.then((resp) => resp.json())
.then(function (data) {
document.getElementById("quote").innerHTML = data.quote;
@@ -288,7 +288,7 @@
).href = `https://twitter.com/intent/tweet?text=${tweet}`;
});
fetch("https://chainz-rest.azurewebsites.net/alias", { method: "GET" })
fetch("/api/alias", { method: "GET" })
.then((resp) => resp.json())
.then(function (data) {
document.getElementById("alias").innerHTML = "- " + data.alias;