// backend/routes/ollamaRoutes.js
import express from 'express';
import authMiddleware from '../middlewares/authMiddleware.js';
import { queryAssistant } from '../controllers/ollamaController.js';

const router = express.Router();

// Add authMiddleware to ensure req.userId is defined
router.post('/query', authMiddleware, queryAssistant);

export default router;

