From 7b3934b43f6b24d000b0ca7f4943c14463edc3f0 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Tue, 29 Apr 2025 20:43:08 +0000 Subject: [PATCH] feat: Update endpoint fruits --- endpoints/fruits.get.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/endpoints/fruits.get.py b/endpoints/fruits.get.py index 7542883..1dcb5ad 100644 --- a/endpoints/fruits.get.py +++ b/endpoints/fruits.get.py @@ -13,13 +13,4 @@ def get_fruits( db: Session = Depends(get_db) ): return get_all_fruits(db, order_by) - -@router.get("/fruits/{fruit_id}", status_code=status.HTTP_200_OK, response_model=FruitSchema) -def get_fruit( - fruit_id: str, - db: Session = Depends(get_db) -): - fruit = get_fruit_by_id(db, fruit_id) - if not fruit: - raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Fruit not found") - return fruit \ No newline at end of file + \ No newline at end of file