# Entity: Person from fastapi import APIRouter, Depends from sqlalchemy.orm import Session from typing import List from core.database import get_db from models.person import Person from schemas.person import PersonSchema from helpers.person_helpers import get_people_below_age router = APIRouter() @router.get("/ypeople", status_code=200, response_model=List[PersonSchema]) async def get_young_people( db: Session = Depends(get_db) ): people = get_people_below_age(db, 50) return people