From 146034b08446c4bf0099bb41ab5e689d418e6dce Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 14 Jul 2026 20:35:55 +0000 Subject: feat(tasks): add HTTP endpoints for task detail, update, and recurrence GET /api/widget/task, POST /api/widget/task/update, POST /api/widget/task/recurrence, POST /api/widget/task/next-date. Doot-only; the recurrence/next-date fields are null in the detail response for a non-recurring task. --- cmd/dashboard/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 45a83e2..f78e5b5 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -379,6 +379,10 @@ func main() { r.With(widgetAuth).Post("/api/widget/complete", h.HandleWidgetComplete) r.With(widgetAuth).Post("/api/widget/reschedule", h.HandleWidgetReschedule) r.With(widgetAuth).Post("/api/widget/add", h.HandleWidgetAdd) + r.With(widgetAuth).Get("/api/widget/task", h.HandleWidgetTaskDetail) + r.With(widgetAuth).Post("/api/widget/task/update", h.HandleWidgetTaskUpdate) + r.With(widgetAuth).Post("/api/widget/task/recurrence", h.HandleWidgetTaskRecurrence) + r.With(widgetAuth).Post("/api/widget/task/next-date", h.HandleWidgetTaskNextDate) } else { log.Println("WIDGET_TOKEN not set — /api/widget disabled") } -- cgit v1.2.3