diff --git a/project/01-first-rest-api/app.py b/project/01-first-rest-api/app.py index 1e75e84f..b1e6c39d 100644 --- a/project/01-first-rest-api/app.py +++ b/project/01-first-rest-api/app.py @@ -30,7 +30,7 @@ def create_item(): @app.get("/item") def get_all_items(): - return {"items": list(items.value())} + return {"items": list(items.values())} @app.get("/store/") @@ -54,4 +54,4 @@ def create_store(): @app.get("/store") def get_stores(): - return {"stores": list(stores.value())} + return {"stores": list(stores.values())}