Added: meta-tags and robots.txt to prevent search engine indexing

This commit is contained in:
Christoph Wiechert
2017-05-05 20:57:20 +02:00
parent 2b79d0b337
commit 24a2c748cd
5 changed files with 9 additions and 0 deletions

View File

@@ -31,6 +31,10 @@ if(config.accessLog) {
app.use('/app', express.static(path.join(__dirname, '../public/app')));
app.use('/assets', express.static(path.join(__dirname, '../public/assets')));
// robots.txt
app.get('/robots.txt', (req, res) => {
res.sendFile(path.join(__dirname, '../public/robots.txt'));
});
// Upload App
app.get('/', (req, res) => {