Todo List

A live todo list backed by route handlers in src/app/api/items/route.ts. Use the GET card to fetch todos and the POST card to add a new one — all without leaving the page.

GET/api/items

Returns the todo list as JSON.

POST/api/items

Creates a new todo. Sends { title } as JSON. New todos start as incomplete.

Request body preview
{
  "title": "<title>"
}