Просмотр исходного кода

Merge branch 'feature/item-by-id-endpoint' of jezv___/item_keeper into master

jezvcp 2 мес. назад
Родитель
Сommit
ac5d910b47
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      main.py

+ 4 - 0
main.py

@@ -9,3 +9,7 @@ def read_root():
 @app.get("/items")
 def get_items():
     return {"items": ["item1", "item2", "item3"]}
+
+@app.get("/item")
+def get_items():
+    return "item1"