Skip to content

docs: clarify route path matching#2444

Open
vibhor-aggr wants to merge 1 commit into
expressjs:mainfrom
vibhor-aggr:docs/clarify-route-path-matching
Open

docs: clarify route path matching#2444
vibhor-aggr wants to merge 1 commit into
expressjs:mainfrom
vibhor-aggr:docs/clarify-route-path-matching

Conversation

@vibhor-aggr

Copy link
Copy Markdown

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 9c07172
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a524ecbcc96ed0008d83d60
😎 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.

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.

Mention different path matching strategies

1 participant