From 9327d7fe19261b9458b561fc8eaa29917208cee7 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Thu, 13 Mar 2025 15:35:44 +0100 Subject: [PATCH] Update code in endpoints/new-endpoint.put.py --- endpoints/new-endpoint.put.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/endpoints/new-endpoint.put.py b/endpoints/new-endpoint.put.py index a8f6e95..52d4717 100644 --- a/endpoints/new-endpoint.put.py +++ b/endpoints/new-endpoint.put.py @@ -1 +1,13 @@ -hiii youuu \ No newline at end of file +from fastapi import APIRouter, Depends, HTTPException + +router = APIRouter() + +@router.put("/new-endpoint") +async def new_endpoint_handler(text: str): + """Echo the value of a text parameter""" + return { + "message": "Text echoed successfully", + "data": { + "text": text + } + } \ No newline at end of file