diff --git a/endpoints/young_people.get.py b/endpoints/young_people.get.py index 973d231..296a00f 100644 --- a/endpoints/young_people.get.py +++ b/endpoints/young_people.get.py @@ -1,8 +1,8 @@ # Entity: Person -from fastapi import APIRouter, Depends -from typing import List +from fastapi import APIRouter, Depends, status 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 @@ -14,5 +14,5 @@ router = APIRouter() async def get_young_people( db: Session = Depends(get_db) ): - young_people = get_young_people(db) - return young_people \ No newline at end of file + people = get_young_people(db) + return people \ No newline at end of file