Remove hardcoded URLs for API paths