23 lines
975 B
Go
Raw Normal View History

package importroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"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"
)
// Register registers the page routes.
2019-06-03 03:20:17 +00:00
func Register(app *aero.Application) {
// 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)
}