Skip to content

Instantly share code, notes, and snippets.

@anthonywebb
Created January 12, 2012 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonywebb/1601967 to your computer and use it in GitHub Desktop.
Save anthonywebb/1601967 to your computer and use it in GitHub Desktop.
http test
//******************************
// BUILD THE HTTP SERVER
//******************************
var express = require('express');
var app = express.createServer();
app.get('/login', function(req, res){
console.log("hit the login");
res.send('you hit the login');
});
app.get('*', function(req, res){
console.log("got a 404");
res.send('what???', 404);
});
app.listen(8081);
console.log('Server started on port: 8081');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment