diff options
Diffstat (limited to 'cmd/dashboard')
| -rw-r--r-- | cmd/dashboard/main.go | 4 |
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") } |
