We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cea2f7 commit 34381a3Copy full SHA for 34381a3
1 file changed
src/lib/api/index.js
@@ -213,6 +213,12 @@ const CITIES_LOCATION = {
213
214
const API = {
215
getAirData(city) {
216
+ if (API_TOKEN) {
217
+ console.log("API_TOKEN is set");
218
+ }
219
+ if (API_BASE_URL) {
220
+ console.log("API_BASE_URL is set");
221
222
return fetch(`${API_BASE_URL}/data/stats/air/?city=${city}`, {
223
headers: {
224
Authorization: `Token ${API_TOKEN}`,
@@ -221,6 +227,12 @@ const API = {
227
});
228
},
229
getWeeklyP2Data(city) {
230
231
232
233
234
235
236
const fromDate = new Date(Date.now() - 7 * 24 * 3600 * 1000)
225
237
.toISOString()
226
238
.substring(0, 10);
0 commit comments