title: How do I implement a default route for users not logged in with Express?
body: <p>Using Node.js and Express, I want to have users who are not logged in always redirected to the main page. What is the simplest way of achieving this? Ideally I'd not have to add code to every route checking whether someone's logged in.</p>