Why do I need this? The right answer is: I don’t need that trick! The example below is just to show how to use routes
The reference to isLoggedIn in the route is an connect route middleware. Control is passed to the middleware function before the route function is called.