Add GET endpoint for /asian

This commit is contained in:
Backend IM Bot 2025-03-29 13:08:12 -05:00
parent bdc9964e47
commit 56bb49a038

View File

@ -1,12 +1,11 @@
from typing import List
from fastapi import APIRouter, status from fastapi import APIRouter, status
from typing import Dict, Any
from schemas.car import CarSchema from helpers.health_helpers import check_system_status
from helpers.car_helpers import get_asian_cars
router = APIRouter() router = APIRouter()
@router.get("/asian", status_code=200, response_model=List[CarSchema]) @router.get("/api/health", status_code=200)
async def get_asian_cars_list(): async def health_check() -> Dict[str, Any]:
asian_cars = get_asian_cars() """Check system health status"""
return asian_cars status_info = check_system_status()
return status_info