secure-mern
Version:
A lightweight yet powerful npm package to enhance security in MERN stack applications. Built with enterprise-grade architecture in mind, secure-mern helps you integrate essential security features with minimal configuration.
12 lines (10 loc) • 551 B
JavaScript
const express = require('express');
const authController = require('../controllers/authController')
const router = express.Router();
router.post('/register', authController.register)
router.post('/verify-email', authController.veriftEamilOTP)
router.post('/login', authController.login)
router.post('/get-password-reset-otp', authController.passwordforget_emailverify)
router.post('/check-password-reset-otp', authController.checkpassword_resetotp)
router.post('/update-password', authController.updaete_password)
module.exports = router;