17 lines
425 B
Python
17 lines
425 B
Python
# Entity: Female
|
|
|
|
from typing import List
|
|
from fastapi import APIRouter, Depends, status
|
|
|
|
from models.female import Female
|
|
from schemas.female import FemaleSchema
|
|
from helpers.female_helpers import get_all_females
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/females", status_code=200, response_model=List[FemaleSchema])
|
|
async def get_females(
|
|
db: Session = Depends(get_db)
|
|
):
|
|
females = get_all_females(db)
|
|
return females |