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

12 lines
465 B
JavaScript
Raw 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('/login',[authMid.fieldCheck,authMid.userCheckEmail],authController.signIn);
app.post('/verifyotp',[authJwt.verifyToken],authController.verifyOtp);
}