summaryrefslogtreecommitdiff
path: root/cmd/dashboard
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-12 10:34:34 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-12 10:34:34 +0000
commitdfb06e896b92003d219979cbb1476ed16b7734a3 (patch)
treee8ff6a8ad2e73172a6b352dfe9a12094ee2c27ef /cmd/dashboard
parente1e632c1e57c8aa0940e7ff566a1c7ab267625c8 (diff)
feat(widget): add POST /api/widget/add for quick-add
Diffstat (limited to 'cmd/dashboard')
-rw-r--r--cmd/dashboard/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index b38b9e1..5414a9d 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -371,6 +371,7 @@ func main() {
r.With(widgetAuth).Get("/api/widget", h.HandleWidgetGet)
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)
} else {
log.Println("WIDGET_TOKEN not set — /api/widget disabled")
}