Skip to content

Commit

Permalink
add initial source
Browse files Browse the repository at this point in the history
  • Loading branch information
h3xxx committed Feb 13, 2024
1 parent e0083c3 commit ab2ec3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,14 @@ def read_item(item_id: int, q: Union[str, None] = None):
:return:
"""
return {"item_id": item_id, "q": q}


@app.get("/users/{user_id}")
def read_user(user_id: int, q: Union[str, None] = None):
"""
This is the user path
:param user_id:
:param q:
:return:
"""
return {"user_id": user_id, "q": q}

0 comments on commit ab2ec3f

Please sign in to comment.