# Entity: Food from fastapi import APIRouter, Depends from typing import List from schemas.food import FoodSchema from helpers.food_helpers import get_all_foods router = APIRouter() @router.get("/food", status_code=200, response_model=List[FoodSchema]) async def get_foods( db: Session = Depends(get_db) ): foods = get_all_foods(db) return foods