docs: document path-scoped middleware and remove em-dashes from prose - #233
Merged
Merged
Conversation
Add a "Scoping middleware to specific paths" section to docs/packages/http.md covering RequestPathRule's path/passthrough include/exclude contract and a PathScopedMiddleware decorator for scoping non-authentication middleware. Replace prose em-dashes with contextual punctuation (parentheses, colons, commas, semicolons) across docs/, README.md, AGENT.md, and CHANGELOG.md. Em-dashes inside code blocks and inline code spans are left untouched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documentation-only change. No source changes, no version bump.
docs/packages/http.md: "Scoping middleware to specific paths". Fills a gap: how to restrict/exclude middleware by request path.RequestPathRule'spath(include) /passthrough(exclude) contract for the authentication middleware, with boundary-aware prefix matching (/apimatches/api/users/42but not/apidocs) and AND-combining withRequestMethodRuleto letOPTIONSpre-flight through.PathScopedMiddlewaredecorator (only/exceptprefix lists) for scoping any non-authentication middleware, since the PSR-15 pipeline is global.docs/,README.md,AGENT.md, andCHANGELOG.md. Em-dashes inside code blocks and inline code spans are intentionally left untouched, including the two indocs/packages/tinker.mdthat document the literal—rendered for a missing count.Test plan
#scoping-middleware-to-specific-paths) resolves from the Authentication and JWT cross-link