Fixed handling of unknown routes

This commit is contained in:
Marcus Noble 2018-01-14 14:12:38 +00:00
parent ffd12aa758
commit ff599f7893

View File

@ -24,7 +24,7 @@ const handleResponse = (profileURLs, req, res) => {
server.use(restify.plugins.queryParser()); 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) => { fs.readFile(`${__dirname}/README.md`, { encoding: 'utf8' }, (err, data) => {
return res.sendRaw(` return res.sendRaw(`
<html> <html>