Skip to content

Glossary: Next.js Beyond the Basics

Route handler

Also written: route.ts, route handlers

A route.ts file in app/ that answers HTTP requests with any response, usually JSON. It exports a function per method, such as GET and POST.

Where the book teaches it

Related terms

HTTP methodsServer actionWebhook