-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Question] app.configure without scope? #558
Comments
There's a comment about this in the code: https://github.com/feathersjs/feathers/blob/master/src/application.js#L110 |
This was how Express used to do it. It wouldn't be a huge change to additionally pass the |
@daffl Indeed, and I could easily override with my own version that does this ... was more just curious if it was a core API design opinion. |
This has been added in v3 (see linked PR) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs. |
Since I'm fairly new to using feathers, I was wondering the philosophy behind the pervasive use of scope in various parts of the API. I used to design APIs this way as well but lately have preferred more functional/explicit designs.
For example:
vs.
I understand that it would be a huge breaking change (and thus probably not realistic), but at least in this case it could be changed in a backwards compatible way (but other things like hooks and services are tricker).
The text was updated successfully, but these errors were encountered: