fixing api endpoint for production