20 lines
436 B
Python
20 lines
436 B
Python
from fastapi import APIRouter
|
|
from .send import send
|
|
from .get_conversation import get_conversation
|
|
from app.models import Message
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.post("/send")
|
|
async def send_router(message: Message):
|
|
return await send(message)
|
|
|
|
|
|
@router.get("/get_conversation/{conversation_url}")
|
|
async def get_conversation_router(conversation_url: str):
|
|
return await get_conversation(conversation_url)
|
|
|
|
|
|
__all__ = ["router"]
|