Created
January 10, 2015 18:49
-
-
Save juanpabloaj/0c4ea47d8b05d18a808c 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
var express = require('express'); | |
var app = express(); | |
var site = express.Router(); | |
var port = process.env.PORT || 8080; | |
site.use(function(req, res, next){ | |
next(); | |
}); | |
site.route('/') | |
.get(function(req, res){ | |
res.send('hola js meetup!'); | |
}); | |
app.use('/', site); | |
app.listen(port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment