/* ============================================================================ *\
|| ########################################################################## ||
|| # Auction Software Marketplace Release: 0.6 Build 0.7 # ||
|| # ---------------------------------------------------------------------- # ||
|| # License # 35YAHCNR9344X6O666C123AB # ||
|| # ---------------------------------------------------------------------- # ||
|| # Copyright ©2014–2021 Develop Scripts LLC. All Rights Reserved # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ------------- AUCTION SOFTWARE IS NOT FREE SOFTWARE ------------------ # ||
|| # http://www.auctionsoftwaremarketplace.com|support@auctionsoftware.com # ||
|| # ---------------------------------------------------------------------- # ||
|| ########################################################################## ||
\* ============================================================================ */
const express = require('express')
const productCtrl = require('../controllers/product')
const app = express.Router()
/**
* Routes for Products.
*
* @namespace frontend.product
* @memberOf frontend
*/
app.post('/search', productCtrl.search)
app.post('/activeSorts', productCtrl.activeSorts)
app.post('/dashboard', productCtrl.dashboard)
app.post('/invoice', productCtrl.invoice)
app.post('/returninvoice', productCtrl.returninvoice)
app.post('/bidhistory', productCtrl.bidhistory)
app.post('/allinvoices', productCtrl.allinvoices)
app.post('/allreturns', productCtrl.allreturns)
app.post('/listing_post', productCtrl.postlisting)
app.post('/listing_update', productCtrl.updatelisting)
app.post('/category_post', productCtrl.categorypost)
app.post('/category_update', productCtrl.categoryupdate)
app.post('/auction_post', productCtrl.auctionlisting)
app.post('/auction_update', productCtrl.updateauction)
app.post('/addtocarts', productCtrl.addtocart)
app.post('/updatetocarts', productCtrl.updateTocart)
app.post('/cartupdatetobuynow', productCtrl.cartupdateTobuynow)
app.post('/checkout', productCtrl.getcheckoutdetails)
app.post('/getcategorylist', productCtrl.categorygetlist)
app.post('/getauctionlist', productCtrl.getauctiondetails)
app.post('/getlotlist', productCtrl.getlotdetails)
app.post('/removecheckoutcart', productCtrl.removecarts)
app.post('/rosoom_payment', productCtrl.rosoomPaymentcall)
app.post('/rosoom_success', productCtrl.rosoomPaymentsuccess)
module.exports = app