You create a `route.ts`/`route.js` file and export HTTP methods like `GET`, `POST`. Handlers use the Web `Request`/`Response` APIs. They’re used for custom APIs, webhooks, or backend logic without a separate server.
export async function GET() {
return Response.json({ ok: true })
}