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.
Glossary: Next.js Beyond the Basics
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.