summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-15 18:23:38 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:54:17 +0000
commit7e2386c0ebbc2d1cafc670ad4fd05b884f8b8fa7 (patch)
treef227965eb043dcf36771203903d6db7efd66acbf /cmd
parentd5750f2268be5164159dcd81901a10b0496525b7 (diff)
feat(tasks): add HTTP endpoints for projects and label colors
Extends the task-detail response with project/labels so the popup can display them without a second round trip. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VTUSAEKfsPc6WGDq45yPHD
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dashboard/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index f78e5b5..929dfc3 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -383,6 +383,12 @@ func main() {
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)
+ r.With(widgetAuth).Get("/api/widget/projects", h.HandleWidgetProjectsGet)
+ r.With(widgetAuth).Post("/api/widget/projects", h.HandleWidgetProjectsCreate)
+ r.With(widgetAuth).Post("/api/widget/task/project", h.HandleWidgetTaskProject)
+ r.With(widgetAuth).Post("/api/widget/task/labels", h.HandleWidgetTaskLabels)
+ r.With(widgetAuth).Get("/api/widget/labels", h.HandleWidgetLabelsGet)
+ r.With(widgetAuth).Post("/api/widget/labels/color", h.HandleWidgetLabelsColorSet)
} else {
log.Println("WIDGET_TOKEN not set — /api/widget disabled")
}