feat: Generated endpoint endpoints/barbie.get.py via AI for Country

This commit is contained in:
Backend IM Bot 2025-04-19 12:35:32 -05:00
parent a07fb772ef
commit 99d8e22abc

View File

@ -0,0 +1,13 @@
from fastapi import APIRouter, Depends
from typing import List
from sqlalchemy.orm import Session
from core.database import get_db
from schemas.country import CountrySchema
from helpers.country_helpers import get_european_countries
router = APIRouter()
@router.get("/barbie", status_code=200, response_model=List[CountrySchema])
async def get_european_countries_endpoint(db: Session = Depends(get_db)):
countries = get_european_countries(db)
return countries