Removed old method of parsing routes, implemented YAML parsing