Fixed handling of unknown routes

This commit is contained in:
Marcus Noble 2018-01-14 14:12:38 +00:00
parent ffd12aa758
commit ff599f7893
1 changed files with 1 additions and 1 deletions

View File

@ -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(`
<html>