made routes into a separate file