feat: upgrade AI prompts to v2 specification with grounding and injection shield
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Router } from 'express';
|
||||
import { register, checkDevice } from '../controllers/auth.controller';
|
||||
|
||||
const router = Router();
|
||||
|
||||
// POST /api/auth/register — E-posta + şifre ile kayıt
|
||||
router.post('/register', register);
|
||||
|
||||
// POST /api/auth/check-device — Cihazın daha önce trial kullanıp kullanmadığını kontrol et
|
||||
router.post('/check-device', checkDevice);
|
||||
|
||||
export default router;
|
||||
@@ -6,6 +6,7 @@ import caseRoutes from './case.routes';
|
||||
import templateRoutes from './template.routes';
|
||||
import draftingRoutes from './drafting.routes';
|
||||
import googleDriveRoutes from './googleDrive.routes';
|
||||
import authRoutes from './auth.routes';
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -13,6 +14,7 @@ router.get('/health', (req, res) => {
|
||||
res.json({ status: 'ok', message: 'AyrisLegal Backend is running' });
|
||||
});
|
||||
|
||||
router.use('/auth', authRoutes); // POST /api/auth/register, /api/auth/check-device
|
||||
router.use('/documents', documentRoutes);
|
||||
router.use('/chat', chatRoutes);
|
||||
router.use('/cases', caseRoutes);
|
||||
|
||||
Reference in New Issue
Block a user