This commit is contained in:
andrei-mihnea-cerbu
2024-01-12 22:19:19 +02:00
parent 37b2c068b8
commit e65b05b451
59 changed files with 349 additions and 190 deletions
@@ -0,0 +1,19 @@
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"]