front/routes/user.js

/* ============================================================================ *\
|| ########################################################################## ||
|| # 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)
app.post('/verification_otp', userCtrl.otpVerify)
app.post('/check_otp', userCtrl.otpVerifycheck)
app.post('/addinviteuser', userCtrl.addInviteUser)
app.post('/getsingleuser', userCtrl.getsingleuserdetails)

app.post('/submitContactUs', userCtrl.submitContactUs)

app.post('/getSavedSearch', userCtrl.getSavedSearch)
app.post('/addSavedSearch', userCtrl.addSavedSearch)
app.post('/removeSavedSearch', userCtrl.removeSavedSearch)

app.post('/userAddress', userCtrl.userAddress)
app.post('/sendEmailVerifyLink', userCtrl.sendEmailVerifyLink)
module.exports = app