summaryrefslogtreecommitdiff
path: root/cmd/dashboard
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-14 20:35:55 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:44:52 +0000
commit146034b08446c4bf0099bb41ab5e689d418e6dce (patch)
tree46db3cca04eb3d57b58a5195bbe42d0c193a9043 /cmd/dashboard
parentba5205213f6f1995ca4e64b08925bcc6c48b8211 (diff)
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.
Diffstat (limited to 'cmd/dashboard')
-rw-r--r--cmd/dashboard/main.go4
1 files changed, 4 insertions, 0 deletions
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")
}