router.route('/register').all(function(req, res, next) {}).get(function(req, res, next) {var context = { title: 'Contact list'};res.render('register', context);}).post(function(req, res, next) {res.format({'text/html': function() {res.redirect('/contacts');},'application/json': function() {res.send(context);}});});Formatted gist: https://gist.github.com/newz2000/44351b760c188d3dfe13
The all function gets called and never calls next() so the program doesn't know it's done working and hangs.
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+...@googlegroups.com.
To post to this group, send email to expre...@googlegroups.com.
Visit this group at http://groups.google.com/group/express-js.
For more options, visit https://groups.google.com/d/optout.