Let the wunderlist migrator use the registerRoutes function
continuous-integration/drone/pr Build was killed Details

This commit is contained in:
kolaente 2020-01-20 20:22:24 +01:00
parent 4a2125c5ec
commit 8d12509264
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 3 deletions

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)
}
}