async def convert_uri(request: Request):
    data = (await request.json())
    if ('uri' not in data):
        return Response('Invalid JSON in request', status_code=400)
    bytes = (await execute_wkhtmltopdf(data['uri']))
    return Response(bytes, media_type='application/pdf')
async def convert_uri(request: Request):
    data = (await request.json())
    if ('uri' not in data):
        return Response('Invalid JSON in request', status_code=400)
    bytes = (await execute_wkhtmltopdf(data['uri']))
    return Response(bytes, media_type='application/pdf')