From cecffa4b560ae722f5e49d579083ffc293d540bb Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 19:26:29 +0000 Subject: [PATCH] feat: Update endpoint fruits --- endpoints/fruits.get.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"},