FastAPI: Difference between revisions

Content deleted Content added
Undid revision 1271967223 by Wiamsuri (talk)
m Added the `async` keyword to the function which more closely aligns with the example code in the official FastAPI documentation.
Line 44:
 
@app.get("/")
async def read_root():
return "Hello World!"
</syntaxhighlight>