route method

Fixed the route handler method.