nonobieBETA
Roadmap
GitHub

Node Express

Node.js & Express — Learning Roadmap01 — Node.js Runtime & Modules02 — File System & Path03 — Events & Streams04 — HTTP Module (No Framework)05 — Async Patterns & Error Handling06 — Express Setup & Basics07 — Middleware08 — Routing & Router09 — Request Handling10 — Response Patterns11 — REST API Design12 — Authentication & Authorization13 — Error Handling & Logging14 — Input Validation & Sanitization15 — Database Integration Patterns16 — Testing17 — Security Best Practices18 — Performance & Caching19 — WebSockets & Real-Time20 — Project Structure & Deployment
Docs
/
Node Express
Chapter 8

08 — Routing & Router

Core Concepts

  • express.Router() — modular, mountable route handler
  • Route grouping — organize routes by feature/resource
  • Router-level middleware — middleware scoped to a router
  • app.use('/prefix', router) — mount router at a path prefix
  • router.param() — middleware that runs when a specific param is present
  • Route chaining — router.route('/path').get().post()
07 — Middleware09 — Request Handling