Adds route() method to handle different entry URLs.