I am using middleware to invoke the next route but for some reason it is not getting called. Here is the code:
app.get('/foo',function(req,res,next){
console.log('first route')
next('route')
},function(req,res,next){
// this route is never fired
console.log('second route')
res.send('second route')
})
The second function is not getting called. Any ideas