Browse Source

Merge branch 'feature/items-endpoint' of pivozavri/fossdev into develop

zhbr112 2 tháng trước cách đây
mục cha
commit
e1472d7496
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      main.py

+ 5 - 0
main.py

@@ -5,3 +5,8 @@ app = FastAPI()
 @app.get("/")
 def read_root():
     return {"message": "Hello, Pivozavrы!"}
+
+
+@app.get("/items")
+def get_items():
+    return {"items": ["pivo", "riba", "holodec"]}