We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9683ab3 commit c1e32dfCopy full SHA for c1e32df
app.js
@@ -4,7 +4,7 @@ const express = require('express'),
4
util = require('./bin/util'),
5
axios = require('axios'),
6
covid19 = require('./lib/cli'),
7
- covid19GFX = require('./lib/cli/gfx'),
+ covid19GFX = require('./lib/cli/gfx'),
8
pkg = require('./package.json'), // package.json info
9
apiBaseURL = "https://corona.lmao.ninja/v2", // NovelCOVID API
10
port = process.env.port || 7070; // set port
@@ -147,12 +147,13 @@ app.get('/history/charts/:country/:chartSize(sm|md|lg)?', async (req, res, next)
147
s.deaths, s.todayDeaths, s.recovered,
148
s.active, s.critical, s.casesPerOneMillion,
149
s.updated, h, chartType, s.countryInfo, chartSize
150
- )
+ );
151
return null;
152
}
153
return next();
154
});
155
156
+// route for web browser clients
157
app.get('*', (req, res) => res.send(`
158
Welcome to COVID-19 Tracker CLI v${pkg.version} by Waren Gonzaga\n
159
Please visit: https://warengonza.ga/covid19-tracker-cli
0 commit comments