Skip to content

docs: clarify route and middleware path matching - #2444

Merged
bjohansebas merged 3 commits into
expressjs:mainfrom
vibhor-aggr:docs/clarify-route-path-matching
Oct 24, 2026
Merged

bjohansebas merged 3 commits into
expressjs:mainfrom
vibhor-aggr:docs/clarify-route-path-matching

Conversation

@vibhor-aggr

Copy link
Copy Markdown
Contributor

Summary

  • Clarify that app.METHOD() route paths match complete request paths rather than prefixes.
  • Update explicit route method path parameter descriptions to refer to route callbacks and syntax examples.
  • Reword the app.use() prefix matching description so it is clearly about mounted middleware.

Fixes #1941.

Verification

  • npx prettier --check src/content/api/4x/api/application/index.mdx src/content/api/5x/api/application/index.mdx
  • npx cspell src/content/api/4x/api/application/index.mdx src/content/api/5x/api/application/index.mdx
  • npm run lint
  • git diff --check
  • npm run build

@vibhor-aggr
vibhor-aggr requested a review from a team as a code owner July 11, 2026 14:10
@netlify

netlify Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 93a73b9
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6add08371b9cdf8501b9e38f
😎 Deploy Preview https://deploy-preview-2444--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bjohansebas
bjohansebas force-pushed the docs/clarify-route-path-matching branch from 9c07172 to f83f83a Compare October 24, 2026 19:30
@bjohansebas bjohansebas changed the title docs: clarify route path matching docs: clarify route and middleware path matching Oct 24, 2026
@bjohansebas
bjohansebas merged commit 26bc66a into expressjs:main Oct 24, 2026
16 checks passed
@bjohansebas bjohansebas added the docs Issues/pr concerning content label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Issues/pr concerning content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention different path matching strategies

2 participants