-
-
Save rightfold/d038242156aa42f1a362 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let express = require('express') in | |
let app = express() in | |
app.get('/greet/:name/', fn req res _ { | |
res.send('Hello, ' + req.params.name + '!') | |
}); | |
app.listen(1337) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var express = (require)("express"); | |
return (function () { | |
var app = (express)(); | |
return (function () { | |
((app).get)("/greet/:name/", function () { | |
var __gear0 = arguments; | |
if (__gear0.length !== 3) { | |
throw new Error('bad match'); | |
} | |
var req = (__gear0)[0]; | |
var res = (__gear0)[1]; | |
var _ = (__gear0)[2]; | |
return ((res).send)((("Hello, ") + (((req).params).name)) + ("!")); | |
}); | |
return ((app).listen)(1337); | |
})(); | |
})(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment