Possible error in the logical flow of the middleware sub-stack example provided in the website. #2022
Nishant-Dwivedi
started this conversation in
Content
Replies: 2 comments
|
Hi @Nishant-Dwivedi , thanks for suggesting. I think the current logic is correct though — the ! is intentional because we want to block requests that are missing the x-auth header. Also, we use I think we need to improve our documentation on |
0 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Expectations
I could be wrong but i think you need to either remove the bang in front of
req.headers['x-auth']or swapnext('route')withnext().All reactions