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 way to declare middleware both before and after registering requests #20

Open
siddiqus opened this issue Apr 13, 2020 · 0 comments
Open

Comments

@siddiqus
Copy link
Owner

currently middleware: [] in expressApp params only registers those middleware before the requests.

so if we wanted to do something with responses, we need to add middleware after request handling.

maybe another middleware declaration could be :

middleware: {
  beforeRequests: [],
  afterRequests: []
}

with the default middleware: [] going to beforeRequests

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