feat(HAI-001): update REST API to require description instead of title

This commit is contained in:
Dustin Byrne
2026-03-25 19:04:19 -04:00
parent 2451e72bf9
commit 20b7b8e562

View File

@@ -25,8 +25,8 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
router.post("/tasks", async (req, res) => {
try {
const { title, description, column, dependencies } = req.body;
if (!title || typeof title !== "string") {
res.status(400).json({ error: "title is required" });
if (!description || typeof description !== "string") {
res.status(400).json({ error: "description is required" });
return;
}
const task = await store.createTask({