Next.js 16+ · Interface
RouteHandlerContext
Route Handlers let you define custom HTTP request handlers in the Next.js app directory. Put them in route.js or route.ts files and export functions for supported HTTP methods.
Last updated
Syntax
export async function GET(request: Request) {}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
RequestResponseNextRequestNextResponseAPI Routespage.jslayout.js