Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Simple module
- function Simple() {
- var a = function () { return "Hello"; };
- this.hello = function (req, res, arg) {
- res.simpleSend(a());
- }
- this.talk = function (req, res, arg) {
- res.simpleSend("Hi, you said: "+arg.join(" "));
- }
- }
Add Comment
Please, Sign In to add comment