feat: Generated endpoint endpoints/barbie.get.py via AI for Country
This commit is contained in:
parent
a07fb772ef
commit
99d8e22abc
@ -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
|
Loading…
x
Reference in New Issue
Block a user