diff --git a/endpoints/fruits.get.py b/endpoints/fruits.get.py index bc24e30..dafa422 100644 --- a/endpoints/fruits.get.py +++ b/endpoints/fruits.get.py @@ -1,10 +1,9 @@ from fastapi import APIRouter, status from typing import List -from schemas.fruit import FruitSchema router = APIRouter() -@router.get("/fruits", status_code=status.HTTP_200_OK, response_model=List[FruitSchema]) +@router.get("/fruits", status_code=status.HTTP_200_OK) async def get_fruits(): fruits = [ {"name": "Apple", "color": "Red"},