Let the wunderlist migrator use the registerRoutes function
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
4a2125c5ec
commit
8d12509264
|
@ -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