Add GET endpoint for /lulu
This commit is contained in:
parent
eaa00f50ee
commit
bd0374e7c7
@ -0,0 +1,10 @@
|
|||||||
|
from fastapi import APIRouter, status
|
||||||
|
from typing import List
|
||||||
|
from helpers.car_helpers import get_asian_cars
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/lulu", status_code=200, response_model=List[str])
|
||||||
|
async def list_asian_cars():
|
||||||
|
asian_cars = get_asian_cars()
|
||||||
|
return asian_cars
|
Loading…
x
Reference in New Issue
Block a user