async def json_api(request):
    """Returning a dict will cause the content-type to default to
    application/json.
    """
    return {
        "this": "is",
        "the": "api",
        "method": request.method,
        "apipath": request.path[4:],
    }