Computer scienceBackendNode.jsCore ConceptsInternal modulesHTTP serverhttp module

Routing

Dynamic and static route example

Report a typo

Match the URLs given on the left with their corresponding route handlers on the right.

The URL pattern /products/:category/:productId is used to capture dynamic route parameters, with :category representing a product category and :productId representing a specific product's identifier.
Match the items from left and right columns
/
/about
/products/:category/:productId
/users/:id
/posts/:postId/comments/:commentId
handleProductDetails
handlePostComment
handleRoot
handleAbout
handleUserProfile
___

Create a free account to access the full topic