Turned routes into controllers to make dependency injection simpler