Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor imports in routes #224

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/v1/auth.route.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/routes/v1/user.route.js
Original file line number Diff line number Diff line change
@@ -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();

Expand Down