diff --git a/endpoints/asian.get.py b/endpoints/asian.get.py new file mode 100644 index 0000000..bafbfa8 --- /dev/null +++ b/endpoints/asian.get.py @@ -0,0 +1,12 @@ +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 \ No newline at end of file