7fife-backend/routes/auth.route.js

18 lines
721 B
JavaScript
Raw Permalink Normal View History

2024-03-07 13:01:44 +00:00
const authMid = require('../middlewares/Auth/auth.middle');
const authController = require('../controllers/auth.controller')
const authJwt = require('../middlewares/authjwt');
module.exports = (app) => {
// app.post('/register',[authMid.fieldCheck,authMid.uniqueEmail] ,authController.signUp);
app.post('/register' ,authController.signUp);
// app.post('/login',[authMid.fieldCheck,authMid.userCheckEmail],authController.signIn);
app.post('/login',authController.signIn);
app.post('/verifyotp',authController.verifyOtp);
app.post('/resendotp',authController.resendOTP);
app.post('/forgotPassword',authController.forgotPassword)
app.post('/resetPassword',authController.resetPassword)
2024-03-07 13:01:44 +00:00
}