Skip to content

Propagate Express global middleware and catch-all routes#125

Merged
bjcorder merged 1 commit into
mainfrom
issue-109-express-global-middleware
Jul 13, 2026
Merged

Propagate Express global middleware and catch-all routes#125
bjcorder merged 1 commit into
mainfrom
issue-109-express-global-middleware

Conversation

@bjcorder

Copy link
Copy Markdown
Owner

Summary

  • Propagate prefix-less app.use and router.use middleware only to later routes on the same receiver, preserving source registration order.
  • Carry preceding app/router global middleware through mount composition.
  • Emit terminal app.all handlers as ANY routes while retaining non-terminal middleware-factory calls as middleware context.
  • Keep unknown global middleware conservative: it remains middleware context with a route note rather than fabricated authorization evidence.
  • Add adapter, pipeline, fixture, JSON golden, Markdown golden, and documentation coverage.

Verification

  • cargo check --workspace --all-targets --locked
  • cargo test --workspace --all-targets --locked

Closes #109

@bjcorder
bjcorder merged commit c571d54 into main Jul 13, 2026
15 checks passed
@bjcorder
bjcorder deleted the issue-109-express-global-middleware branch July 13, 2026 13:20
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.

Express: propagate prefix-less use() middleware with call-order semantics; emit app.all() catch-all routes

1 participant