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.
11 lines
334 B
TypeScript
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;
|