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