feat(migration): add routes for TickTick migrator
This commit is contained in:
parent
e5394d6d4b
commit
3af9855148
@ -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…
x
Reference in New Issue
Block a user