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

Add support for pre middleware function for list endpoints #40

Merged
merged 5 commits into from Sep 1, 2017
Merged

Add support for pre middleware function for list endpoints #40

merged 5 commits into from Sep 1, 2017

Conversation

tamias
Copy link
Contributor

@tamias tamias commented Aug 31, 2017

Implemented along the lines of the pre middleware function for create endpoints.

Also, updated middleware example for create pre in the README to include request in the function signature.

tamias and others added 3 commits August 30, 2017 11:48
Added support for routeOptions.list.pre.
Added a test.
Added to middleware documentation in README.

Also, updated create pre example in README to include `request` in the
function signature.
@JKHeadley
Copy link
Owner

@tamias looks like the tests were skipping one of the error cases. Would you mind fixing it?

Return error from routeOptions.list.pre for preprocessing error test.
Added general processing error test.
@JKHeadley JKHeadley merged commit a043613 into JKHeadley:master Sep 1, 2017
@JKHeadley
Copy link
Owner

Looks good! Thanks!

@tamias tamias deleted the FEATURE_list_pre branch May 29, 2018 20:30
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

Successfully merging this pull request may close these issues.

2 participants