From 115d4944b4a3250f0016b93ed922f3dc09ea2bde Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Thu, 27 Mar 2025 23:50:14 +0000 Subject: [PATCH] Update code in endpoints/yolomax.get.py --- endpoints/yolomax.get.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/endpoints/yolomax.get.py b/endpoints/yolomax.get.py index 52e0809..ed4f925 100644 --- a/endpoints/yolomax.get.py +++ b/endpoints/yolomax.get.py @@ -1,10 +1,11 @@ -# Entity: YoloMessage +# Entity: YoloResponse from fastapi import APIRouter, status +from schemas.yolo import YoloResponseSchema router = APIRouter() -@router.get("/yolomax", status_code=status.HTTP_200_OK) -async def get_yolo_message(): - """Return yolooo2! message""" - return {"message": "yolooo2!"} \ No newline at end of file +@router.get("/yolomax", response_model=YoloResponseSchema, status_code=status.HTTP_200_OK) +async def get_yolo(): + """Return yolooo3!""" + return {"message": "yolooo3!"} \ No newline at end of file