← Next.js & Shipping
Lesson 4 · triangle Next.js & Shipping
Route Handlers & Server Actions
Build an API endpoint and a form mutation in the same app.
Before you start
route.ts exports functions named after HTTP methods and speaks the Web Request/Response API — nothing framework-specific. Server Actions are the other direction: functions marked "use server" that a form can call directly, no endpoint required.
5 exercises·up to 72 XP·5/5 hearts