-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
Express middleware #45
Comments
The problem is that we check if there is a use:function(location, service) {
...
if (_.some(this.methods, hasServiceMethod)) {
return this.service(location, service);
}
...
} A express app has always a |
An express app is an instance of Object (no function constructor) and doesn't expose any type, package name or version. The only way I see to know if that's an express app is to look for specific handlers (might be defaultConfiguration, propfind, etc). |
Closed via #46 |
Thanks :) |
* Allow to pass an object to hook object * Remove yarn.lock * Fix assert
* fixing typo in test * adding not-found handler
* Allow to pass an object to hook object * Remove yarn.lock * Fix assert
* fixing typo in test * adding not-found handler
Adds middleware generator and automatic inclusion of auth hooks.
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. |
Express accepts functions and/or express apps as middleware.
It's really useful to split an express app into smaller modules with single responsibilities. Feathers doesn't support it.
The text was updated successfully, but these errors were encountered: