feat: archive all

This commit is contained in:
Timothy J. Baek
2024-05-26 02:54:35 -07:00
parent bf8c32f09f
commit 83107c8ea5
4 changed files with 299 additions and 162 deletions

View File

@@ -148,7 +148,7 @@ async def get_archived_session_user_chat_list(
############################
@router.get("/archive/all", response_model=List[ChatTitleIdResponse])
@router.post("/archive/all", response_model=List[ChatTitleIdResponse])
async def archive_all_chats(user=Depends(get_current_user)):
return Chats.archive_all_chats_by_user_id(user.id)