Skip to content

docs: add code examples for Router options (caseSensitive, mergeParams, strict)#2385

Open
dsbly1 wants to merge 2 commits into
expressjs:mainfrom
dsbly1:docs/add-router-options-examples
Open

docs: add code examples for Router options (caseSensitive, mergeParams, strict)#2385
dsbly1 wants to merge 2 commits into
expressjs:mainfrom
dsbly1:docs/add-router-options-examples

Conversation

@dsbly1

@dsbly1 dsbly1 commented Jun 16, 2026

Copy link
Copy Markdown

Closes #2364

What changed

  • Added practical code examples after the express.Router([options]) options table
  • Examples demonstrate caseSensitive, mergeParams, and strict in real usage

Why

The Router options table describes what each property does but does not show
how to use them in practice. Developers often need to leave the docs and
search externally for working examples. This addition makes the docs
self-contained for these three commonly used options.

Certificate of Origin

I certify that this contribution was created by me and I have the right
to submit it under the open source license indicated in the file.

@dsbly1 dsbly1 requested a review from a team as a code owner June 16, 2026 22:16
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit df7d9c3
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a31dfffadb6b00008c0c5e6
😎 Deploy Preview https://deploy-preview-2385--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: 93 (🔴 down 4 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.

@dsbly1

dsbly1 commented Jun 16, 2026

Copy link
Copy Markdown
Author

The linkChecker failure is a pre-existing issue unrelated to this PR.
All 30 errors are the same broken MDN link in response/index.html
across all language versions, which this PR does not modify.

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.

Documentation Enhancement Request – Add "Example" Column/Tab for All The Properties

1 participant