UNPKG

302 BJavaScriptView Raw
1'use strict';
2
3var Donot = require('./lib/donot');
4
5// We expose a route instead of the actual class.
6exports = module.exports = function(root, opt) {
7 var donot = new Donot(root, opt);
8 return (req, res, next) => {
9 donot.route(req, res, next);
10 };
11};
12
13// Expose class as well
14exports.Donot = Donot;