From 3af98551481d95cf6507c79823b45d824df02cf9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 9 Oct 2022 18:56:37 +0200 Subject: [PATCH] feat(migration): add routes for TickTick migrator --- pkg/routes/routes.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index 88bc138d59..ee85e2265d 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -47,6 +47,7 @@ package routes import ( + "code.vikunja.io/api/pkg/modules/migration/ticktick" "errors" "fmt" "net/url" @@ -655,12 +656,21 @@ func registerMigrations(m *echo.Group) { microsoftTodoMigrationHandler.RegisterRoutes(m) } + // Vikunja File Migrator vikunjaFileMigrationHandler := &migrationHandler.FileMigratorWeb{ MigrationStruct: func() migration.FileMigrator { return &vikunja_file.FileMigrator{} }, } vikunjaFileMigrationHandler.RegisterRoutes(m) + + // TickTick File Migrator + tickTickFileMigrator := migrationHandler.FileMigratorWeb{ + MigrationStruct: func() migration.FileMigrator { + return &ticktick.Migrator{} + }, + } + tickTickFileMigrator.RegisterRoutes(m) } func registerCalDavRoutes(c *echo.Group) {