Update app/main.py
This commit is contained in:
@@ -6,9 +6,4 @@ app = FastAPI()
|
|||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def read_root():
|
def read_root():
|
||||||
return {"Hello": "World"}
|
return {"Hello": "World"}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/items/{item_id}")
|
|
||||||
def read_item(item_id: int, q: str = None):
|
|
||||||
return {"item_id": item_id, "q": q}
|
|
||||||
Reference in New Issue
Block a user