12 lines
465 B
JavaScript
12 lines
465 B
JavaScript
|
|
||
|
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);
|
||
|
}
|