A tiny Next.js sample app
Three pages rendered on the server, plus a small REST API built from route handlers. The pages read through the API, and the client components write back to it.
API endpoints
- GET
/api/healthLiveness check - GET
/api/tasksList tasks (?status=todo) - POST
/api/tasksCreate a task - GET
/api/tasks/:idRead one task - PATCH
/api/tasks/:idUpdate a task - DELETE
/api/tasks/:idDelete a task