Fixed typo
Moved routes into its own file