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 a307484..4a1fb32 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -81,6 +81,10 @@ func main() { r.Post("/cards", h.HandleCreateCard) r.Post("/cards/complete", h.HandleCompleteCard) + // Todoist task operations + r.Post("/tasks", h.HandleCreateTask) + r.Post("/tasks/complete", h.HandleCompleteTask) + // Serve static files fileServer := http.FileServer(http.Dir("web/static")) r.Handle("/static/*", http.StripPrefix("/static/", fileServer)) |
