Route and Query Parameters

A route parameter such as /games/:id lets one route answer every game, read from req.params, and query parameters such as ?players=4 arrive in req.query, both always as text that you turn into numbers before you compare them.

By

Updated

Cheat sheet: Route and Query Parameters
Category
Node.js
Level
Apprentice
Tags
404 Not Found, nodejs, Path Parameter (rest-api), Query Parameters in Express, Query String, rest-api, Route Parameters in Express