From 8effc47206d97ef4d20e4a704d319fccf49ba403 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Tue, 19 Dec 2017 06:41:30 +0000 Subject: [PATCH] Fixed robots.txt --- config/routes/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/routes/index.js b/config/routes/index.js index c7c54c1..61f70e0 100644 --- a/config/routes/index.js +++ b/config/routes/index.js @@ -32,9 +32,10 @@ module.exports = router // robots.txt .get('/robots.txt', (req, res) => { - res.type('text/plain') - res.send('User-agent: *\n' + - 'Disallow: /map/*\n' + res.set('Content-Type', 'text/plain') + .send('User-agent: *\n' + + 'Disallow: /map/*\n' + + 'Allow: /map/demo' ) })