Removed unused items endpoint
This commit is contained in:
parent
03936192fa
commit
12c9696dff
1 changed files with 0 additions and 5 deletions
5
main.py
5
main.py
|
|
@ -11,11 +11,6 @@ app = FastAPI()
|
||||||
def read_root():
|
def read_root():
|
||||||
return {"Hello": "World"}
|
return {"Hello": "World"}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/items/{item_id}")
|
|
||||||
def read_item(item_id: int, q: Union[str, None] = None):
|
|
||||||
return {"item_id": item_id, "q": q}
|
|
||||||
|
|
||||||
@app.get("/boardgame/{boardgame_id}", response_model=BoardGame)
|
@app.get("/boardgame/{boardgame_id}", response_model=BoardGame)
|
||||||
def get_boardgame_by_id(boardgame_id: int):
|
def get_boardgame_by_id(boardgame_id: int):
|
||||||
requested_boardgame: BoardGame = get_boardgame(boardgame_id)
|
requested_boardgame: BoardGame = get_boardgame(boardgame_id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue