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

Question: Is direct import of module is ok? #75

Open
bfunc opened this issue Apr 24, 2021 · 0 comments
Open

Question: Is direct import of module is ok? #75

bfunc opened this issue Apr 24, 2021 · 0 comments

Comments

@bfunc
Copy link

bfunc commented Apr 24, 2021

Question.
There is direct import of module from Application layer
const { get, post, put, remove } = require('src/app/user')
inside /interfaces folder
src\interfaces\http\modules\user\instance.js

Is it ok? Feels like a bit dirty, when we have this whole DI thing.

@bfunc bfunc changed the title Is direct import of module is ok? Question: Is direct import of module is ok? Apr 24, 2021
@bfunc bfunc changed the title Question: Is direct import of module is ok? is:question Is direct import of module is ok? Apr 24, 2021
@bfunc bfunc changed the title is:question Is direct import of module is ok? Question: Is direct import of module is ok? Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant