admin/routes/admin.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 adminCtrl = require('../controllers/admin')

const app = express.Router()

/**
 * Route for Admin.
 *
 * @namespace adminside.admin
 * @memberOf adminside
 */

app.post('/login', adminCtrl.loginUser)
app.post('/updateProfile', adminCtrl.updateProfile)
app.post('/checkValidation', adminCtrl.checkValidation)
app.post('/validateUser', adminCtrl.checkTokenUser)
app.post('/forgotPassword', adminCtrl.forgotPassword)
app.post('/resetPassword', adminCtrl.resetPassword)

module.exports = app