summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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")
}