route

The combination of HTTP method and URL path that a server maps to one handler, such as GET /orders/{id}.

In more detail

Routes are part of an API's public contract, so they should describe resources rather than internal service or database names. Changing a route breaks any client that calls it.

Examples

GET /orders/{id} handled by OrdersApi.get
In the App Router the folders under app/ form the route tree, and a folder is public only if it contains page.tsx or route.ts.
Loading each React route code only when it is visited is the most common kind of code splitting.

Related terms

Taught in

References