Adding route and app dir options in config.