Skip to content

Conversation

@ryutaKimu
Copy link

The original comment: // With adds inline middlewares for an endpoint handler.

this does not indicate that the middleware is applied only to specific routes. It only states that the middleware is added to an endpoint handler, so it is not clear whether it affects all routes or just a subset. Adding "applying them only to the specific route(s) defined on it" makes this behavior explicit and easier for developers to understand.

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.

1 participant