diff --git a/src/routes/v1/auth.route.js b/src/routes/v1/auth.route.js index 220fde38..bc291095 100644 --- a/src/routes/v1/auth.route.js +++ b/src/routes/v1/auth.route.js @@ -1,7 +1,7 @@ const express = require('express'); const validate = require('../../middlewares/validate'); -const authValidation = require('../../validations/auth.validation'); -const authController = require('../../controllers/auth.controller'); +const { authValidation } = require('../../validations'); +const { authController } = require('../../controllers'); const auth = require('../../middlewares/auth'); const router = express.Router(); diff --git a/src/routes/v1/user.route.js b/src/routes/v1/user.route.js index a0a329c4..ce4e7c61 100644 --- a/src/routes/v1/user.route.js +++ b/src/routes/v1/user.route.js @@ -1,8 +1,8 @@ const express = require('express'); const auth = require('../../middlewares/auth'); const validate = require('../../middlewares/validate'); -const userValidation = require('../../validations/user.validation'); -const userController = require('../../controllers/user.controller'); +const { userValidation } = require('../../validations'); +const { userController } = require('../../controllers'); const router = express.Router();