Implement basic route parsing.