提交 83213cdb 编写于 作者: J Jason Park

Disallow scratch papers to be crawled by robots

上级 0ffee2e5
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);
......
User-agent: *
Disallow: /scratch-paper/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册