hackcentercontrol/nodeartnet/node_modules/express/test.js

20 lines
352 B
JavaScript
Raw Permalink Normal View History

2012-12-28 22:17:47 +00:00
/**
* Module dependencies.
*/
var express = require('./')
, app = express()
console.log(express.json());
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.cookieParser('foobar'));
app.use(express.session());
app.get('/', function(req, res){
res.send('hello');
});
app.listen(3000);
console.log('listening on 3000');