From 61fb624fbad9a48ab1b339e9395ac7d050d79215 Mon Sep 17 00:00:00 2001 From: Anson <anson@ansonbiggs.com> Date: Wed, 4 Mar 2020 20:17:30 -0700 Subject: [PATCH] updated quote api url --- 404.html | 16 ++++++++-------- index.html | 2 +- js/index.js | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/404.html b/404.html index ec77ff3..44353a4 100644 --- a/404.html +++ b/404.html @@ -17,7 +17,7 @@ <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title>api.chainz.rest</title> + <title>2.chainz.rest</title> <meta name="description" content="A free REST API for random 2 Chainz quotes" @@ -97,9 +97,9 @@ <meta name="msapplication-TileImage" content="static/ms-icon-144x144.png" /> <meta name="theme-color" content="#ffffff" /> - <meta property="og:title" content="api.chainz.rest" /> - <meta property="og:site_name" content="api.chainz.rest" /> - <meta property="og:url" content="https://api.chainz.rest" /> + <meta property="og:title" content="2.chainz.rest" /> + <meta property="og:site_name" content="2.chainz.rest" /> + <meta property="og:url" content="https://2.chainz.rest" /> <meta property="og:description" content="A free REST API for random 2 Chainz quotes" @@ -107,20 +107,20 @@ <meta property="og:type" content="website" /> <meta property="og:image" - content="https://api.chainz.rest/static/apple-icon.png" + content="https://2.chainz.rest/static/apple-icon.png" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:creator" content="@ajzbc" /> - <meta name="twitter:url" content="https://api.chainz.rest" /> - <meta name="twitter:title" content="api.chainz.rest" /> + <meta name="twitter:url" content="https://2.chainz.rest" /> + <meta name="twitter:title" content="2.chainz.rest" /> <meta name="twitter:description" content="A free REST API for random 2 Chainz quotes" /> <meta name="twitter:image" - content="https://api.chainz.rest/static/apple-icon.png" + content="https://2.chainz.rest/static/apple-icon.png" /> <link diff --git a/index.html b/index.html index 547b12a..54edb70 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title>api.chainz.rest</title> + <title>2.chainz.rest</title> <meta name="description" content="A free REST API for random 2 Chainz quotes" diff --git a/js/index.js b/js/index.js index ebedfc9..5cc8579 100644 --- a/js/index.js +++ b/js/index.js @@ -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"