Skip to content

Commit e7b19f1

Browse files
author
Waren Gonzaga
committed
Add route for help
1 parent 6092564 commit e7b19f1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ app.get(['/plain','/cmd','/basic'], async (req, res, next) => {
4646
});
4747

4848
// help options
49-
app.get(['/help','/manual'], async (req, res, next) => {
49+
app.get(['/help','/manual','/cmd/help','/plain/help','/basic/help'], async (req, res, next) => {
5050
const userAgent = req.headers['user-agent'];
5151
if (util.isCommandline(userAgent)) {
5252
await res.send(covid19.help());

lib/cli/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const color = require('ansi-styles'),
55
table3 = require('cli-table3');
66

77
// ansi colors
8-
98
const
109
// table color
1110
tblclr = (border) => cyan(border),

0 commit comments

Comments
 (0)