mirror of
https://github.com/FutureOfMedTech-FITM-hack/backend.git
synced 2025-10-18 09:34:18 +03:00
19 lines
388 B
Python
19 lines
388 B
Python
from fastapi import APIRouter
|
|
|
|
from med_backend.web.api.echo.schema import Message
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.post("/", response_model=Message)
|
|
async def send_echo_message(
|
|
incoming_message: Message,
|
|
) -> Message:
|
|
"""
|
|
Sends echo back to user.
|
|
|
|
:param incoming_message: incoming message.
|
|
:returns: message same as the incoming.
|
|
"""
|
|
return incoming_message
|