From ff599f78936396e5d235f6c48f033813ed463930 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 14 Jan 2018 14:12:38 +0000 Subject: [PATCH] Fixed handling of unknown routes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cb3d1a6..29f8ba8 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ const handleResponse = (profileURLs, req, res) => { server.use(restify.plugins.queryParser()); -server.get(/(\/|\/index.html)$/, function(req, res) { +server.get(/^(\/|\/index.html)$/, function(req, res) { fs.readFile(`${__dirname}/README.md`, { encoding: 'utf8' }, (err, data) => { return res.sendRaw(`