From 5d1ac634ac0bb3a748c201b7ac2f5f0cf2e17c31 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sat, 29 Mar 2025 12:50:15 -0500 Subject: [PATCH] Add GET endpoint for /asian --- endpoints/asian.get.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 endpoints/asian.get.py 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