From 2ef058970573cf512f06778846e7449fa9597a9b Mon Sep 17 00:00:00 2001 From: doria <93405247+dr-frmr@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:26:17 -0500 Subject: [PATCH] fix: keep backwards compatibility for message creation endpoint (#328) --- src/routers/messages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routers/messages.py b/src/routers/messages.py index 0e2d820f..cfebf424 100644 --- a/src/routers/messages.py +++ b/src/routers/messages.py @@ -80,6 +80,9 @@ async def parse_upload_form( @router.post("", response_model=list[schemas.Message], status_code=201) +@router.post( + "/", response_model=list[schemas.Message], status_code=201, include_in_schema=False +) # backwards compatibility with pre-2.6.0 faulty route endpoint async def create_messages_for_session( background_tasks: BackgroundTasks, messages: schemas.MessageBatchCreate,