diff --git a/static/index.html b/static/index.html index 575d024..c7c7eba 100644 --- a/static/index.html +++ b/static/index.html @@ -99,7 +99,7 @@ In order to access to api, add /api/ prefix to any endpoint url
- Author contact: a31#6403 (discord), a31@demb.design (email)
+ Author contact: a31#6403 (discord), a31@demb.uk (email)
Source code
Monero XMR: 85aKmMT2ab4hkpU3iZRk9q5DDSuDL4qDX2wDEgSFgDmRif7pD1LCN8ZLhYEFDC6rsFae71E5gKsMPG3YHRoikzhcUJ8Rm7h diff --git a/utils.py b/utils.py index 38615a0..8c6c4f1 100644 --- a/utils.py +++ b/utils.py @@ -119,18 +119,18 @@ def proxied_request(url: str, method: str = 'get', **kwargs) -> requests.Respons def _get_bearer() -> str: - """Gets bearer token from capi.demb.design (companion-api project, I will upload it on GH one day...) + """Gets bearer token from capi.demb.uk (companion-api project, I will upload it on GH one day...) :return: bearer token as str """ bearer_request: requests.Response = requests.get( - url='https://capi.demb.design/random_token', headers={'auth': os.environ['DEMB_CAPI_AUTH']}) + url='https://capi.demb.uk/random_token', headers={'auth': os.environ['DEMB_CAPI_AUTH']}) try: bearer: str = bearer_request.json()['access_token'] except Exception as e: - logger.exception(f'Unable to parse capi.demb.design answer\nrequested: {bearer_request.url!r}\n' + logger.exception(f'Unable to parse capi.demb.uk answer\nrequested: {bearer_request.url!r}\n' f'code: {bearer_request.status_code!r}\nresponse: {bearer_request.content!r}', exc_info=e) raise e