Skip to content

Instantly share code, notes, and snippets.

@cosmic-cortex

cosmic-cortex/async.py Secret

Last active May 29, 2020
Embed
What would you like to do?
@app.post("/")
async def endpoint():
# ...
# call async functions here with `await`
# ...
return {"msg": "FastAPI is awesome!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment