feat: add DELETE /api/cases/:caseId to fully delete a case

Chat panel's trash icon should remove the whole case (not just clear
its chat history) — documents/analyses/chat_messages cascade-delete
via the existing ON DELETE CASCADE foreign keys.
This commit is contained in:
mstfyldz
2026-08-09 10:26:36 +03:00
parent 0831ebb25b
commit 7b354d4f96
3 changed files with 32 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { Router } from 'express';
import { requireAuth } from '../middleware/auth';
import { deleteCase } from '../controllers/case.controller';
const router = Router();
router.delete('/:caseId', requireAuth, deleteCase);
export default router;