fetchhistory changes
Deploy Node App / deploy (push) Successful in 10s

This commit is contained in:
Gitea
2026-06-03 11:17:02 +05:30
parent 03a8b87936
commit fe5a10d1fc
3 changed files with 315 additions and 7 deletions
+12 -2
View File
@@ -3,10 +3,20 @@ const router = express.Router();
const loginUser = require('../controller/loginUser.js');
const authMiddleware = require('../middleware/authMiddleware.js');
const handleOrchestration = require('../controller/handleOrchestration.js');
const fetchHistory = require('../controller/fetchhistory.js');
//*****************************loginUser****************************************************
router.post('/loginUser', loginUser.loginUser);
// router.post('/handleOrchestration', authMiddleware, handleOrchestration.handleOrchestration);
router.post('/ask', handleOrchestration.ask);
//**********************************handleOrchestration******************************************** */
router.post('/ask',authMiddleware, handleOrchestration.ask);
router.get('/suggestions', handleOrchestration.suggestions);
router.get('/getThreadDetails', handleOrchestration.getThreadDetails);
router.get('/getResponseDetails', handleOrchestration.getResponseDetails);
//***********************************fetchHistory****************************************************
router.get('/fetchHistory', authMiddleware, fetchHistory.fetchHistory);
router.get('/fetchUserHistory', authMiddleware, fetchHistory.fetchUserHistory);
module.exports = router;