switched api endpoint after url change