mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-04 15:13:26 -04:00
📝 Update docs, add first tutorials
This commit is contained in:
8
docs/tutorial/src/first-steps/tutorial003.py
Normal file
8
docs/tutorial/src/first-steps/tutorial003.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
def root():
|
||||
return {"message": "Hello World"}
|
||||
Reference in New Issue
Block a user