Update code in endpoints/new-endpoint.post.py
This commit is contained in:
parent
e24a1b7263
commit
b945abb794
@ -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
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user