19 lines
446 B
JavaScript
19 lines
446 B
JavaScript
const path = require('path');
|
|
|
|
const setup = ({ server }) => {
|
|
server.get('/robots.txt', (req, res) => {
|
|
res.sendFile(path.join(__dirname, '../static', 'robots.txt'));
|
|
});
|
|
|
|
server.get('/humans.txt', (req, res) => {
|
|
res.sendFile(path.join(__dirname, '../static', 'humans.txt'));
|
|
});
|
|
|
|
server.get('/sitemap.xml', (req, res) => {
|
|
res.sendFile(path.join(__dirname, '../static', 'sitemap.xml'));
|
|
});
|
|
|
|
}
|
|
|
|
module.exports = setup;
|