Fixed robots.txt

master
Keith Irwin 2017-12-19 06:41:30 +00:00
parent 59ee66641d
commit 8effc47206
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 4 additions and 3 deletions

View File

@ -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'
)
})