Improved routing code after reading Express.js in action MEAP and understanding middleware better