import { Router } from 'express';
import { requireAuth } from '../middleware/auth';
import { searchPrecedents, getPrecedentDocument, analyzePrecedents } from '../controllers/precedent.controller';

const router = Router();

router.post('/search-precedents', searchPrecedents);
router.get('/precedent-document/:documentId', getPrecedentDocument);
router.post('/precedent-analysis', requireAuth, analyzePrecedents);

export default router;
