# Entity: Person from fastapi import APIRouter, Depends from typing import List 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) ): young_people = get_people_below_age(db, 40) return young_people