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

Missing an example of how to call multiple before handlers on a single endpoint #55

Open
jay-jlm opened this issue Nov 25, 2016 · 1 comment

Comments

@jay-jlm
Copy link

jay-jlm commented Nov 25, 2016

Please provide an example of how to run more than one middleware as a before or after handler for an individual endpoint.

@jay-jlm jay-jlm changed the title Missing an example of calling multiple before handlers on a single endpoint Missing an example of how to call multiple before handlers on a single endpoint Nov 25, 2016
@jay-jlm
Copy link
Author

jay-jlm commented Nov 30, 2016

For anyone wondering the same thing, it seems that you can pass an array of function references, although I did not find this mentioned anywhere.

Here's where I found an example:
https://github.com/formio/formio/blob/96e9d001e8784416072c1c08728ff60c74390995/src/resources/SubmissionResource.js

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