WEBAPP: Removing hard coding of api endpoint url. now defined in a CONFIG constant