Renamed collection endpoint to owned to avoid confusion
This commit is contained in:
parent
1036205acc
commit
f963b8ae07
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def get_boardgame_by_id(boardgame_id: int):
|
|||
requested_boardgame: boardgame_classes.BoardGame = bgg_connection.get_boardgame(boardgame_id)
|
||||
return requested_boardgame
|
||||
|
||||
@app.get("/collection", response_model=list[boardgame_classes.OwnedBoardGame])
|
||||
@app.get("/owned", response_model=list[boardgame_classes.OwnedBoardGame])
|
||||
def get_owned_collection():
|
||||
requested_collection: list[boardgame_classes.OwnedBoardGame] = bgg_connection.get_user_owned_collection()
|
||||
return requested_collection
|
||||
|
|
|
|||
Loading…
Reference in a new issue