apiRoutes.js 670 B

1234567891011121314
  1. // apiRoutes.js
  2. const express = require('express');
  3. const router = express.Router();
  4. const ruleController = require('../controllers/ruleController');
  5. const emailController = require('../controllers/emailController');
  6. // router.get('/users', userController.getAllUsers);
  7. router.post('/send_otp', emailController.sendOtp);
  8. router.post('/validate_otp', emailController.validateOtp);
  9. router.post('/publish_rule', ruleController.publishRule);
  10. router.get('/get_rules', ruleController.getRules);
  11. router.delete('/delete_rule', ruleController.deleteRule);
  12. router.get('/get_rule', ruleController.getRule);
  13. // router.post('/publish_rule', ruleController.)
  14. module.exports = router;