27 lines
613 B
Python
27 lines
613 B
Python
from fastapi import APIRouter, Depends
|
|
from core.database import fake_users_db
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/countries")
|
|
async def countries_handler():
|
|
"""Get list of South American countries"""
|
|
south_american_countries = [
|
|
"Argentina",
|
|
"Bolivia",
|
|
"Brazil",
|
|
"Chile",
|
|
"Colombia",
|
|
"Ecuador",
|
|
"Guyana",
|
|
"Paraguay",
|
|
"Peru",
|
|
"Suriname",
|
|
"Uruguay",
|
|
"Venezuela"
|
|
]
|
|
|
|
return {
|
|
"message": "South American countries retrieved successfully",
|
|
"countries": south_american_countries
|
|
} |