# Entity: People from fastapi import APIRouter, Depends, status from sqlalchemy.orm import Session from typing import List from core.database import get_db from models.people import People from schemas.people import PeopleSchema from helpers.people_helpers import get_all_people router = APIRouter() @router.get("/peoples", status_code=200, response_model=List[PeopleSchema]) async def get_peoples( db: Session = Depends(get_db) ): peoples = get_all_people(db) return peoples