Fix API endpoint proxy forwarding