fix paths
This commit is contained in:
parent
e1359eb6eb
commit
47843d9228
2 changed files with 11 additions and 2 deletions
|
@ -1 +1,10 @@
|
|||
# FOODER
|
||||
|
||||
Simple API for food diary application.
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Sort meals and entries within meals by date
|
||||
- [ ] Add refresh tokenization
|
||||
- [ ] Add access restriction on each endpoint
|
||||
- [ ] Add tests
|
||||
|
|
|
@ -15,7 +15,7 @@ async def create_entry(
|
|||
return await contoller.call(data)
|
||||
|
||||
|
||||
@router.put("{entry_id}", response_model=Entry)
|
||||
@router.put("/{entry_id}", response_model=Entry)
|
||||
async def update_entry(
|
||||
request: Request,
|
||||
entry_id: int,
|
||||
|
@ -25,7 +25,7 @@ async def update_entry(
|
|||
return await contoller.call(entry_id, data)
|
||||
|
||||
|
||||
@router.delete("{entry_id}")
|
||||
@router.delete("/{entry_id}")
|
||||
async def delete_entry(
|
||||
request: Request,
|
||||
entry_id: int,
|
||||
|
|
Loading…
Reference in a new issue