summaryrefslogtreecommitdiff
path: root/cmd/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dashboard')
-rw-r--r--cmd/dashboard/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index 92a149b..c154d9b 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -342,6 +342,9 @@ func main() {
r.Post("/passkeys/register/finish", authHandlers.HandlePasskeyRegisterFinish)
r.Delete("/passkeys/{id}", authHandlers.HandleDeletePasskey)
+ // Native task management
+ r.Post("/settings/import-from-todoist", h.HandleImportFromTodoist)
+
// Settings
r.Get("/settings", h.HandleSettingsPage)
r.Post("/settings/sync", h.HandleSyncSources)
@@ -362,7 +365,7 @@ func main() {
return handlers.WidgetAuthMiddleware(cfg.WidgetToken, next)
}
r.With(widgetAuth).Get("/api/widget", h.HandleWidgetGet)
- r.With(widgetAuth).Post("/api/widget/complete", handlers.HandleWidgetComplete(todoistClient))
+ r.With(widgetAuth).Post("/api/widget/complete", h.HandleWidgetComplete)
} else {
log.Println("WIDGET_TOKEN not set — /api/widget disabled")
}