generate routes in controller files