+12
-2
@@ -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;
|
||||
Reference in New Issue
Block a user