1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest-site.git synced 2025-07-26 08:01:25 +00:00

updated quote api url

This commit is contained in:
2020-03-04 20:17:30 -07:00
parent afe41969b6
commit 61fb624fba
3 changed files with 11 additions and 11 deletions

View File

@@ -1,13 +1,13 @@
getQuote();
function getQuote() {
fetch("https://api.chainz.rest")
fetch("https://api.chainz.rest/quote")
.then(resp => resp.json())
.then(function(data) {
document.getElementById("quote").innerHTML = data.quote;
const tweet = encodeURIComponent(
`"${data.quote}"-@2chainz via https://api.chainz.rest @ajzbc`
`"${data.quote}"-@2chainz via https://2.chainz.rest @ajzbc`
);
document.getElementById(
"tweet"