Fixed robots.txt
parent
59ee66641d
commit
8effc47206
|
@ -32,9 +32,10 @@ module.exports = router
|
||||||
|
|
||||||
// robots.txt
|
// robots.txt
|
||||||
.get('/robots.txt', (req, res) => {
|
.get('/robots.txt', (req, res) => {
|
||||||
res.type('text/plain')
|
res.set('Content-Type', 'text/plain')
|
||||||
res.send('User-agent: *\n' +
|
.send('User-agent: *\n' +
|
||||||
'Disallow: /map/*\n'
|
'Disallow: /map/*\n' +
|
||||||
|
'Allow: /map/demo'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue