modify default endpoint in api.py