wowtoken.app

git clone https://git.emily.sh/wowtoken-app/wowtoken.app.git
Log | Files | Refs | README | LICENSE

commit a72457efe63e69d244ba0ee634d3c46e804b9a0d
parent bd7625317692a0993193c8e0d16cbf6ab407e4c6
Author: Emily Doherty <emily@emilyd.xyz>
Date:   Thu,  1 Jul 2021 21:11:06 -0400

The CORS-free test endpoint snuck in again, swap it out and deativate it

Diffstat:
Msrc/index.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/index.js b/src/index.js @@ -64,7 +64,7 @@ function populateChart() { async function callUpdateURL() { - let resp = await fetch(" https://piwv24uske.execute-api.us-east-1.amazonaws.com/token/current.json"); + let resp = await fetch("https://data.wowtoken.app/token/current.json"); let data = await resp.json(); updateTokens(data); } @@ -103,7 +103,7 @@ export function updateTimePreference(newTime) { } async function pullChartData() { - let resp = await fetch(" https://piwv24uske.execute-api.us-east-1.amazonaws.com/token/history/" + current_region_selection + "/" + current_time_selection + ".json"); + let resp = await fetch("https://data.wowtoken.app/token/history/" + current_region_selection + "/" + current_time_selection + ".json"); let chart_data = await resp.json(); var new_chart_js_data = [] for (var i = 0; i < chart_data.length; i++) {