URL Router
Noun · Development
Definitions
The component of a web framework or server that matches an incoming request's URL path (and often its HTTP method) against a set of registered route patterns to dispatch the request to the correct handler function. Routers typically support path parameters, wildcards, and middleware attachment.
In plain English: The part of a web application that looks at the address you visited and decides which piece of code should handle your request.
Example: "The router matches '/users/:id/posts' and passes the id param into the controller so we know which user's posts to fetch."