commit a4f6e57c81fa8a8febc03f820d5abdbd9c4b02b0 parent 66c6968bb79681c1096ff438d6b683d9485fd1c1 Author: Emily Doherty <emily@emilyd.xyz> Date: Thu, 1 Jul 2021 18:33:22 -0400 Swap API to production data source after initial CloudFront verification Diffstat:
| M | src/index.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/index.js b/src/index.js @@ -65,7 +65,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); } @@ -104,7 +104,7 @@ 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++) {