diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 06:53:07 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 06:53:07 +0000 |
| commit | de435fda250f93dc897fcb6414f418e7ed9b3595 (patch) | |
| tree | e7a834d17939f5d65213d60feea91d2d8bf98b86 /cmd/dashboard | |
| parent | 2413413b01925c7fab07768d7e405ac13c735000 (diff) | |
Add availability CRUD, task estimate, and budget-tracked toggle endpoints
Adds 6 widget HTTP handlers (availability get/create/delete, task
estimate, project and label budget-tracked toggles) plus route
registration, following the existing widget handler conventions.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PQaPGQVSfmKUiHXB87qRTC
Diffstat (limited to 'cmd/dashboard')
| -rw-r--r-- | cmd/dashboard/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 929dfc3..9691d5b 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -389,6 +389,12 @@ func main() { 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) + r.With(widgetAuth).Get("/api/widget/availability", h.HandleWidgetAvailabilityGet) + r.With(widgetAuth).Post("/api/widget/availability", h.HandleWidgetAvailabilityCreate) + r.With(widgetAuth).Post("/api/widget/availability/delete", h.HandleWidgetAvailabilityDelete) + r.With(widgetAuth).Post("/api/widget/task/estimate", h.HandleWidgetTaskEstimate) + r.With(widgetAuth).Post("/api/widget/projects/budget-tracked", h.HandleWidgetProjectsBudgetTracked) + r.With(widgetAuth).Post("/api/widget/labels/budget-tracked", h.HandleWidgetLabelsBudgetTracked) } else { log.Println("WIDGET_TOKEN not set — /api/widget disabled") } |
