Created
December 6, 2010 22:57
-
-
Save s3u/731159 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
function main(app){ | |
app.get('/', function(req, res) { | |
... | |
}); | |
app.put('/', function(req, res) { | |
... | |
}); | |
app.delete('/', function(req, res) { | |
... | |
}); | |
} | |
var connect = require('connect'); | |
var server = connect.createServer(); | |
server.use(connect.router(main)); | |
server.listen(3000); | |
console.log('Connect server listening on port 3000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment