예제 #1
0
async def update(server: Server):
    new_server = NewServer()
    updresult = new_server.updateServer(dict(server))
    return updresult


# RUN FastAPI => uvicorn <filename>:<obj name> --reload
예제 #2
0
def update():
    server = request.get_json()
    new_server = NewServer()
    updresult = new_server.updateServer(server)
    return updresult


# set server flask use

# set FLASK_APP = {filename.py}
# set FLASK_ENV = development
# flask run => to run server