admin/routes/communication.js

  1. /* ============================================================================ *\
  2. || ########################################################################## ||
  3. || # Auction Software Marketplace Release: 0.6 Build 0.7 # ||
  4. || # ---------------------------------------------------------------------- # ||
  5. || # License # 35YAHCNR9344X6O666C123AB # ||
  6. || # ---------------------------------------------------------------------- # ||
  7. || # Copyright ©2014–2021 Develop Scripts LLC. All Rights Reserved # ||
  8. || # This file may not be redistributed in whole or significant part. # ||
  9. || # ------------- AUCTION SOFTWARE IS NOT FREE SOFTWARE ------------------ # ||
  10. || # http://www.auctionsoftwaremarketplace.com|support@auctionsoftware.com # ||
  11. || # ---------------------------------------------------------------------- # ||
  12. || ########################################################################## ||
  13. \* ============================================================================ */
  14. const express = require('express')
  15. const commCtrl = require('../controllers/communication')
  16. const app = express.Router()
  17. /**
  18. * Route for Communication.
  19. *
  20. * @namespace adminside.communication
  21. * @memberOf adminside
  22. */
  23. app.post('/templates', commCtrl.templates)
  24. app.post('/getSingleTemplate', commCtrl.getSingleTemplate)
  25. app.post('/templateAction', commCtrl.templateAction)
  26. app.post('/staticPages', commCtrl.staticPages)
  27. app.post('/getSingleStaticPages', commCtrl.getSingleStaticPages)
  28. app.post('/staticPagesAction', commCtrl.staticPagesAction)
  29. module.exports = app