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

This commit is contained in:
Backend IM Bot 2025-03-13 15:34:23 +01:00
parent e24a1b7263
commit b945abb794

View File

@ -0,0 +1,13 @@
from fastapi import APIRouter, Depends, HTTPException
router = APIRouter()
@router.post("/new-endpoint")
async def new_endpoint_handler(text: str):
"""Echo text parameter"""
return {
"message": "Text received successfully",
"data": {
"text": text
}
}