-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (37 loc) · 802 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Module dependencies.
*/
var express = require('../')
, http = require('http')
, connect = require('connect');
var app = express.createServer();
app.get('/', function(req, res){
req.foo();
res.send('test');
});
// app.set('views', __dirname + '/views');
// app.set('view engine', 'jade');
//
// app.configure(function(){
// app.use(function(req, res, next){
// debugger
// res.write('first');
// console.error('first');
// next();
// });
//
// app.use(app.router);
//
// app.use(function(req, res, next){
// console.error('last');
// res.end('last');
// });
// });
//
// app.get('/', function(req, res, next){
// console.error('middle');
// res.write(' route ');
// next();
// });
app.listen(3000);
console.log('listening on port 3000');