from flask import Flask
import asyncio
app = Flask(__name__)
loop = asyncio.get_event_loop()
@app.route('/getAllRooms')
def callGetAllRooms():
loop.run_until_complete(getAllRooms())
return "hello"
@app.route('/sendSummary')
def callSendSummary():
loop.run_until_complete(sendSummary())
return "hello"
@app.route('/autoBook')
def callAutoBook():
loop.run_until_complete(autoBook())
return "hello"
async def hello():
print("hello")
发表回复
要发表评论,您必须先登录。