async def METHOD_NAME(request):
    if not engine:
        raise RuntimeError("Server error")
    query = "SELECT * FROM NOTES"
    with engine.connect() as connection:
        result = connection.execute(query)
        d, a = {}, []
        for rowproxy in result:
            for column, value in rowproxy.items():
                d = {**d, **{column: value}}
            a.append(d)
    response = str(a)
    return PlainTextResponse(response)