#2 ФЕДОР РАБОТАЙ

Đã hợp nhất
danil138 đã nhập 1 commit từ jezv___/feature/items-endpoint vào [3]s 3 tháng trước cách đây
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      main.py

+ 4 - 0
main.py

@@ -5,3 +5,7 @@ app = FastAPI()
 @app.get("/")
 def read_root():
     return {"message": "Hello, World!"}
+
+@app.get("/items")
+def get_items():
+    return {"items": ["item1", "item2", "item3"]}