routing

Choosing which piece of code handles a request, based on its method and path, such as GET /users/42.

In more detail

A router matches the path against patterns and extracts parameters such as the 42. Unmatched requests usually receive a 404 Not Found response.

Related terms

Taught in

References