Update code in endpoints/new-endpoint.put.py

This commit is contained in:
Backend IM Bot 2025-03-13 15:35:44 +01:00
parent b945abb794
commit 9327d7fe19

View File

@ -1 +1,13 @@
hiii youuu
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
}
}