added a new route() method to the router