From c8761c7f3b2e0fd355c13b3f09c51aa6ed84512e Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 30 Mar 2025 07:20:37 +0000 Subject: [PATCH] feat: Update endpoint food --- endpoints/food.get.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/food.get.py b/endpoints/food.get.py index 30a1ce6..09d37f3 100644 --- a/endpoints/food.get.py +++ b/endpoints/food.get.py @@ -5,12 +5,12 @@ from sqlalchemy.orm import Session from typing import List from core.database import get_db from models.food import Food -from schemas.food import FoodSchema +from schemas.food import FoodCreate from helpers.food_helpers import get_all_foods router = APIRouter() -@router.get("/food", status_code=200, response_model=List[FoodSchema]) +@router.get("/food", status_code=200, response_model=List[FoodCreate]) async def get_food_list( db: Session = Depends(get_db) ):