happner
Version:
distributed application engine with evented storage and mesh services
21 lines (16 loc) • 410 B
JavaScript
module.exports = function () {
return new ModuleFive();
}
function ModuleFive() {
this.preProcessor = function (req, res, next) {
req.url = '/preprocessed-' + req.url.slice(1, req.url.length);
next();
};
this.testScope = function (req, res) {
res.statusCode = 200;
if (this.__proto__.constructor.name != req.uri.query.scope) {
res.statusCode = 500;
}
res.end();
}
}