Skip to content

Commit c1e32df

Browse files
author
Waren Gonzaga
committed
Small fixes
1 parent 9683ab3 commit c1e32df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const express = require('express'),
44
util = require('./bin/util'),
55
axios = require('axios'),
66
covid19 = require('./lib/cli'),
7-
covid19GFX = require('./lib/cli/gfx'),
7+
covid19GFX = require('./lib/cli/gfx'),
88
pkg = require('./package.json'), // package.json info
99
apiBaseURL = "https://corona.lmao.ninja/v2", // NovelCOVID API
1010
port = process.env.port || 7070; // set port
@@ -147,12 +147,13 @@ app.get('/history/charts/:country/:chartSize(sm|md|lg)?', async (req, res, next)
147147
s.deaths, s.todayDeaths, s.recovered,
148148
s.active, s.critical, s.casesPerOneMillion,
149149
s.updated, h, chartType, s.countryInfo, chartSize
150-
)
150+
);
151151
return null;
152152
}
153153
return next();
154154
});
155155

156+
// route for web browser clients
156157
app.get('*', (req, res) => res.send(`
157158
Welcome to COVID-19 Tracker CLI v${pkg.version} by Waren Gonzaga\n
158159
Please visit: https://warengonza.ga/covid19-tracker-cli

0 commit comments

Comments
 (0)