Add API endpoint to update the typebot in ongoing chat session

This commit is contained in:
Baptiste Arnaud
2023-08-04 14:53:49 +02:00
parent f7de11611f
commit 53e4bc2b75
5 changed files with 175 additions and 30 deletions

View File

@@ -1,10 +1,12 @@
import { getUploadUrl } from '@/features/blocks/inputs/fileUpload/api/getUploadUrl'
import { sendMessage } from '@/features/chat/api/sendMessage'
import { router } from '../../trpc'
import { updateTypebotInSession } from '@/features/chat/api/updateTypebotInSession'
export const appRouter = router({
sendMessage,
getUploadUrl,
updateTypebotInSession,
})
export type AppRouter = typeof appRouter