let the url endpoint be a config variable