archive
/
actioner
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
actioner/actioner/web/healthcheck.py

12 lines
304 B
Python

from starlette.responses import JSONResponse
from actioner.clients import get_todoist_client, github
async def healthcheck(request):
todoist = get_todoist_client()
todoist.user.sync()
return JSONResponse(
{"github": github.get_user().login, "todoist": todoist.user.get_id()}
)