Migration Improvements #122
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue