indoflaven commited on
Commit
142c7bc
·
1 Parent(s): 1fe6f08

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -6,7 +6,7 @@ app = FastAPI()
6
  def read_root():
7
  return {"Hello": "World!"}
8
 
9
- @app.post("/")
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():