From e537bef22e7da7d5eeb21e16f506a303c546f378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Sun, 2 Apr 2023 12:49:31 +0200 Subject: [PATCH] fix paths --- Readme.md | 1 + fooder/view/entry.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 36af5ac..7907c67 100644 --- a/Readme.md +++ b/Readme.md @@ -8,3 +8,4 @@ Simple API for food diary application. - [ ] Add refresh tokenization - [ ] Add access restriction on each endpoint - [ ] Add tests +- [ ] Add default servings diff --git a/fooder/view/entry.py b/fooder/view/entry.py index 1056345..8e41913 100644 --- a/fooder/view/entry.py +++ b/fooder/view/entry.py @@ -15,7 +15,7 @@ async def create_entry( return await contoller.call(data) -@router.put("/{entry_id}", response_model=Entry) +@router.patch("/{entry_id}", response_model=Entry) async def update_entry( request: Request, entry_id: int,