Migration Improvements #122

Merged
konrad merged 5 commits from feature/migration-improvement into master 2020-01-20 19:48:47 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 8d12509264 - Show all commits

View File

@ -35,7 +35,7 @@ type AuthURL struct {
}
// RegisterRoutes registers all routes for migration
func (mw *MigrationWeb) RegisterRoutes(g echo.Group) {
func (mw *MigrationWeb) RegisterRoutes(g *echo.Group) {
ms := mw.MigrationStruct()
g.GET("/"+ms.Name()+"/auth", mw.AuthURL)
g.GET("/"+ms.Name()+"/status", mw.Status)

View File

@ -386,8 +386,7 @@ func registerAPIRoutes(a *echo.Group) {
return &wunderlist.Migration{}
},
}
m.GET("/wunderlist/auth", wunderlistMigrationHandler.AuthURL)
m.POST("/wunderlist/migrate", wunderlistMigrationHandler.Migrate)
wunderlistMigrationHandler.RegisterRoutes(m)
}
}