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) ):