UNPKG

happner

Version:

distributed application engine with evented storage and mesh services

18 lines (12 loc) 263 B
module.exports = function() { return new Example(); } function Example() { this.apiFunction = function(arg1, callback) { callback(null, arg1 + arg1); } this.webFunction = function(req, res, next) { res.end('fan tastic'); // next(); } }