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.
This commit is contained in:
mstfyldz
2026-08-09 10:09:15 +03:00
parent b030bdaa60
commit 0831ebb25b
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import precedentRoutes from './precedent.routes';
const router = Router();
router.get('/health', (req, res) => {
res.json({ status: 'ok', message: 'LegalOS Backend is running' });
res.json({ status: 'ok', message: 'AyrisLegal Backend is running' });
});
router.use('/documents', documentRoutes);