Fix API URL to /api/*