front/routes/video.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 videoCtrl = require('../controllers/video')
  16. const app = express.Router()
  17. /**
  18. * Routes for video.
  19. *
  20. * @namespace frontend.video
  21. * @memberOf frontend
  22. */
  23. app.post('/videoStream', videoCtrl.videoStream)
  24. app.post('/videoBroadcast', videoCtrl.videoBroadCast)
  25. app.post('/newVideoBroadCaster', videoCtrl.newVideoBroadCaster)
  26. app.post('/newVideoStream', videoCtrl.newVideoStream)
  27. app.post('/stopVideoBroadCaster', videoCtrl.stopVideoBroadCaster)
  28. module.exports = app