Files
lagos-back/src/routes/chat.routes.ts
T
mstfyldz 0831ebb25b feat: add DELETE /api/chat/:caseId to clear a case's chat history
Frontend's chat history trash icon was calling this endpoint but it
didn't exist yet, causing a JSON-parse error on the default 404 page.

Also renames the LegalOS health-check message to AyrisLegal.
2026-08-09 10:09:15 +03:00

11 lines
334 B
TypeScript

import { Router } from 'express';
import { requireAuth } from '../middleware/auth';
import { chatMessage, deleteChatHistory } from '../controllers/chat.controller';
const router = Router();
router.post('/:caseId/message', requireAuth, chatMessage);
router.delete('/:caseId', requireAuth, deleteChatHistory);
export default router;