Spaces:
Runtime error
Runtime error
Commit
·
142c7bc
1
Parent(s):
1fe6f08
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,7 +6,7 @@ app = FastAPI()
|
|
| 6 |
def read_root():
|
| 7 |
return {"Hello": "World!"}
|
| 8 |
|
| 9 |
-
@app.
|
| 10 |
def update_item(item_id: int, item: str):
|
| 11 |
return {"item_name": item, "item_id": item_id}
|
| 12 |
#def put_root():
|
|
|
|
| 6 |
def read_root():
|
| 7 |
return {"Hello": "World!"}
|
| 8 |
|
| 9 |
+
@app.put("/")
|
| 10 |
def update_item(item_id: int, item: str):
|
| 11 |
return {"item_name": item, "item_id": item_id}
|
| 12 |
#def put_root():
|