fix api endpoints urls