Skip to content

Commit 41238ee

Browse files
committed
fix: api url
1 parent eec8fdb commit 41238ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ app.get('/history/charts/:country/:chartSize(sm|md|lg)?', async (req, res, next)
136136
chartType = req.params.chartType || 'cases',
137137
chartSize = req.params.chartSize || 'sm',
138138
summary = await axios.get(`${apiBaseURL}/countries/${countryData}`),
139-
history = await axios.get(`${apiBaseURL}/v2/historical/${summary.data.country}?lastdays=all`),
139+
history = await axios.get(`${apiBaseURL}/historical/${summary.data.country}?lastdays=all`),
140140
s = summary.data,
141141
h = history.data;
142142

0 commit comments

Comments
 (0)