add routes and models for apps and envs