2018-04-25 18:03:35 +00:00
|
|
|
package importroutes
|
|
|
|
|
|
|
|
import (
|
2019-06-03 03:20:17 +00:00
|
|
|
"github.com/aerogo/aero"
|
2018-04-25 18:03:35 +00:00
|
|
|
"github.com/animenotifier/notify.moe/pages/listimport"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/listimport/listimportanilist"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/listimport/listimportkitsu"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/listimport/listimportmyanimelist"
|
2019-06-03 03:20:17 +00:00
|
|
|
"github.com/animenotifier/notify.moe/utils/page"
|
2018-04-25 18:03:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Register registers the page routes.
|
2019-06-03 03:20:17 +00:00
|
|
|
func Register(app *aero.Application) {
|
2018-04-25 18:03:35 +00:00
|
|
|
// Import
|
2019-06-03 03:20:17 +00:00
|
|
|
page.Get(app, "/import", listimport.Get)
|
|
|
|
page.Get(app, "/import/anilist/animelist", listimportanilist.Preview)
|
|
|
|
page.Get(app, "/import/anilist/animelist/finish", listimportanilist.Finish)
|
|
|
|
page.Get(app, "/import/myanimelist/animelist", listimportmyanimelist.Preview)
|
|
|
|
page.Get(app, "/import/myanimelist/animelist/finish", listimportmyanimelist.Finish)
|
|
|
|
page.Get(app, "/import/kitsu/animelist", listimportkitsu.Preview)
|
|
|
|
page.Get(app, "/import/kitsu/animelist/finish", listimportkitsu.Finish)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|