Skip to content

Commit

Permalink
Update main : action test
Browse files Browse the repository at this point in the history
  • Loading branch information
minseok128 committed Oct 9, 2024
1 parent d03c71e commit 42d1335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class ItemResponse(BaseModel):
def read_root():
return {"Hello": "World"}

@app.get("/test")
def read_test():
return {"content": "from fastapi"}


@app.get("/items/{item_id}")
def read_item(item_id: int, q: Union[str, None] = None):
Expand Down

0 comments on commit 42d1335

Please sign in to comment.