feat(migration): add routes for TickTick migrator
This commit is contained in:
parent
e5394d6d4b
commit
3af9855148
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue