admin/routes/auction.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 auctCtrl = require('../controllers/auction')
  16. const MulterModule = require('../modules/multer')
  17. const multer = new MulterModule()
  18. const app = express.Router()
  19. /**
  20. * Route for Auction.
  21. *
  22. * @namespace adminside.auction
  23. * @memberOf adminside
  24. */
  25. app.post('/lots', auctCtrl.auctionlots)
  26. app.post('/auctionAction', multer.multerSingleUpload('lotupload'), auctCtrl.auctionAction)
  27. app.post('/getSingleAuction', auctCtrl.getSingleAuction)
  28. app.post('/addtoAuction', auctCtrl.addtoAuction)
  29. app.post('/getAllProjectsAssociated', auctCtrl.getAllProjectsAssociated)
  30. app.post('/changeStatus', auctCtrl.changeStatus)
  31. module.exports = app