From f963b8ae0788a48f5d38ba934068d23216351dfb Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Fri, 2 Aug 2024 10:54:29 +0200 Subject: [PATCH] Renamed collection endpoint to owned to avoid confusion --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 40a865a..8f025e5 100644 --- a/src/main.py +++ b/src/main.py @@ -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