diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dashboard/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 437420d..09292b4 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -145,8 +145,13 @@ func main() { } } + var claudomatorClient api.ClaudomatorClient + if cfg.ClaudomatorURL != "" { + claudomatorClient = api.NewClaudomatorClient(cfg.ClaudomatorURL) + } + // Initialize handlers - h := handlers.New(db, todoistClient, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, cfg, buildCommit, wa != nil) + h := handlers.New(db, todoistClient, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, claudomatorClient, cfg, buildCommit, wa != nil) // Set up router r := chi.NewRouter() |
