Added map() method. Invokes the specified routes declaring function