diff --git a/app/index.js b/app/index.js index 1fe2aa6ef6e3ed2a5a6b88bdaa7b97f7758c5611..f8ad3d89718ee55527344ea13c9c7cd0a846fe09 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,4 @@ +const path = require('path'); const express = require('express'); const app = express(); @@ -18,6 +19,9 @@ app.use((req, res, next) => { next(); } }); +app.get('/robots.txt', (req, res) => { + res.sendFile(path.resolve(__dirname, '..', 'robots.txt')); +}); app.use(apiEndpoint, backend); app.use(frontend); diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..04bd3bb7279de5be1a5912e923209a2427af60f4 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /scratch-paper/