remove /api from api calls