"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ragPoisoningRouter = void 0;
const express_1 = require("express");
const permissions_1 = require("../../util/config/permissions");
const poison_documents_1 = require("../controller/rag-poisoning/poison-documents");
const permission_1 = require("../middlewares/permission");
const ragPoisoningUpload_1 = require("../middlewares/ragPoisoningUpload");
const ragPoisoningRouter = (0, express_1.Router)();
exports.ragPoisoningRouter = ragPoisoningRouter;
// RAG Poisoning endpoint
ragPoisoningRouter.post('/poison-documents', ragPoisoningUpload_1.ragPoisoningUploadMiddleware, (0, permission_1.hasPermission)(permissions_1.Permission.SECURITY_EVALUATION_WRITE), poison_documents_1.poisonDocumentsController);
//# sourceMappingURL=ragPoisoning.js.map