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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user