# 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_above_age router = APIRouter() @router.get("/old_people", status_code=200, response_model=List[PersonSchema]) async def get_old_people( db: Session = Depends(get_db) ): people = get_people_above_age(db, age=40) return people