Add function to recognize a given route.