Route Handler
Noun · Development
Definitions
The function or method that executes when an incoming request matches a defined route. In Express it's the callback passed to app.get(); in Next.js App Router, it's an exported GET/POST function in a route.ts file that runs on the server.
In plain English: The piece of code that actually does the work when a web request hits a specific URL.
Example: "The route handler parses the JSON body, validates the schema with Zod, and passes the clean data to the service layer."