We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, middleware modules are specified like this:
{ "custom": { "enabled": true, "priority": 30, "route": "/foo", "module": "./lib/middleware", "factoryMethod": "customMiddleware", "arguments": [ "foo", { "bar": "baz" } ] } }
This issue proposes to switch to using strings for simple exported middleware, or objects for including additional information:
{ "custom": { "enabled": true, "priority": 30, "route": "/foo", "module": "./lib/middleware" } }
{ "custom": { "enabled": true, "priority": 30, "route": "/foo", "module": { "name": "./lib/middleware", "method": "customMiddleware", "arguments": [ "foo", { "bar": "baz" } ] } } }
The text was updated successfully, but these errors were encountered:
Implement #6, update docs and dependencies.
b6e080f
Merge pull request #10 from krakenjs/module-spec
f972e4b
This change is available in meddleware@1.x
Sorry, something went wrong.
No branches or pull requests
Currently, middleware modules are specified like this:
This issue proposes to switch to using strings for simple exported middleware, or objects
for including additional information:
The text was updated successfully, but these errors were encountered: