/* ============================================================================ *\
|| ########################################################################## ||
|| # 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 userCtrl = require('../controllers/user')
const app = express.Router()
/**
* Route for Users.
*
* @namespace frontend.user
* @memberOf frontend
*/
app.post('/login', userCtrl.loginUser)
app.post('/register', userCtrl.registerUser)
app.post('/updateProfile', userCtrl.updateProfile)
app.post('/checkValidation', userCtrl.checkValidation)
app.post('/validateUser', userCtrl.checkTokenUser)
app.post('/addWatchlist', userCtrl.addWatchlist)
app.post('/removeWatchlist', userCtrl.removeWatchlist)
app.post('/forgotPassword', userCtrl.forgotPassword)
app.post('/verifyEmail', userCtrl.verifyEmail)
app.post('/resetPassword', userCtrl.resetPassword)
app.post('/sendPhoneVerifyCode', userCtrl.sendPhoneVerifyCode)
app.post('/verifyPhoneVerifyCode', userCtrl.verifyPhoneVerifyCode)
app.post('/updatePreference', userCtrl.updatePreference)
module.exports = app