fixed-project-1t6bv1/endpoints/new-endpoint.put.py
2025-03-13 15:35:44 +01:00

13 lines
312 B
Python

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
}
}