Route parameters are named URL segments used to capture dynamic values from the URL path. You define them with a colon (:paramName), and Express automatically populates them inside req.params.
Use Cases
Route parameters are ideal for identifying a specific resource, such as /users/42 or /courses/expressjs/routing.
ADVERTISEMENT