lordty-tf33y7/endpoints/asian.get.py
2025-03-29 12:50:15 -05:00

12 lines
326 B
Python

from typing import List
from fastapi import APIRouter, status
from schemas.car import CarSchema
from helpers.car_helpers import get_asian_cars
router = APIRouter()
@router.get("/asian", status_code=200, response_model=List[CarSchema])
async def get_asian_cars_list():
asian_cars = get_asian_cars()
return asian_cars