adding /api to base ururl for api calls