Web & Frontend

React, Next.js, Node.js and web security.

Next.js · 10/13/2026 · 9 min read · 104

Route Handlers: Writing APIs in Next.js

How to use Route Handlers in App Router to write REST APIs: defining methods, reading body, dynamic params, cookies, caching, and testing with Vitest.