Updated app to use configuration for api endpoint