Generate controller from route file