Set up a robots.txt
- Since
- 1.0.0
- Copyright
- MIT
- Source
Example
const {Runtime, Server} = require('@neobeach/core');
const robotsTxt = require('@neobeach/middlewares-robots-txt');
const server = new Server();
Runtime(() => {
server.loadMiddlewares([robotsTxt(true, [])]);
server.run();
});