Skip to content

docs: add API option examples for Express 4 and 5 - #2385

Merged
bjohansebas merged 3 commits into
expressjs:mainfrom
dsbly1:docs/add-router-options-examples
Oct 24, 2026
Merged

bjohansebas merged 3 commits into
expressjs:mainfrom
dsbly1:docs/add-router-options-examples

Conversation

@dsbly1

@dsbly1 dsbly1 commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2364

Preview: https://deploy-preview-2385--expressjscom-preview.netlify.app/en/5x/api/express/#expressrouter

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 7fca455
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6add0432c5b47f8e0ff56146
😎 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: 95 (🔴 down 2 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
Contributor 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.

@ShubhamOulkar

Copy link
Copy Markdown
Member

@dsbly1 please resolve the conflict.

@bjohansebas
bjohansebas force-pushed the docs/add-router-options-examples branch from df7d9c3 to dbdf38a Compare October 24, 2026 19:07
@bjohansebas bjohansebas changed the title docs: add code examples for Router options (caseSensitive, mergeParams, strict) docs: add API option examples for Express 4 and 5 Oct 24, 2026
@bjohansebas
bjohansebas merged commit e1aba95 into expressjs:main Oct 24, 2026
14 of 17 checks passed
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

3 participants