Glossary term
What is Route Handler? Meaning for developers
A route.ts file that answers HTTP requests with the standard Request and Response objects, used for public APIs and webhooks.
Learn it properly · Next.js App RouterLesson 4: Route Handlers, Middleware (Proxy) and APIsWriting API endpoints, request and response helpers, the request interception layer in this Next.js version, headers, redirects and rewrites.