feat: Update endpoint food

This commit is contained in:
Backend IM Bot 2025-03-30 07:20:37 +00:00
parent 290f4f9b47
commit c8761c7f3b

View File

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