Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Router } from 'express';
|
||||
import documentRoutes from './document.routes';
|
||||
import chatRoutes from './chat.routes';
|
||||
import precedentRoutes from './precedent.routes';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/health', (req, res) => {
|
||||
res.json({ status: 'ok', message: 'LegalOS Backend is running' });
|
||||
});
|
||||
|
||||
router.use('/documents', documentRoutes);
|
||||
router.use('/chat', chatRoutes);
|
||||
router.use('/', precedentRoutes); // Keeps the same paths like /api/search-precedents
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user