Skip to content

Commit 1ec008d

Browse files
fix: change ambiguous name of get one post
1 parent a45a664 commit 1ec008d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routes/posts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_all_posts(db: Session = Depends(get_db)):
2727

2828

2929
@router.get("/get/{id}", status_code=status.HTTP_200_OK, response_model=Post)
30-
def get_all_posts(id, db: Session = Depends(get_db)):
30+
def get_one_post(id, db: Session = Depends(get_db)):
3131
return post_get_one(db=db, id=id)
3232

3333

0 commit comments

Comments
 (0)