var express = require('express');
var app = express();
var mw1 = function(req, res){
res.send('Hello')
next();
}
var mw2 = function(req, res){
res.send('world')
}
app.get('/', mw1, mw2);
app.listen(3030)'
var express = require('express');
var app = express();
var mw1 = function(req, res, next){
res.send('Hello')
next('mw2');
}
var mw2 = function(req, res){
res.send('world')
}
app.get('/', mw1, mw2);
app.listen(3030)