Set up a robots.txt

Since
  • 1.0.0
Author
  • Glenn de Haan

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();
});