13 lines
453 B
Python
13 lines
453 B
Python
from fastapi import APIRouter, Depends, HTTPException, status
|
|
from typing import List
|
|
from models.country import Country
|
|
from schemas.country import CountrySchema
|
|
from helpers.country_helpers import get_asian_countries
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/store", response_model=List[CountrySchema], status_code=200)
|
|
async def get_asian_countries_list():
|
|
"""Get list of countries in Asia"""
|
|
countries = get_asian_countries()
|
|
return countries |