Added anime list deletion

This commit is contained in:
2019-08-29 14:08:32 +09:00
parent 1d6cdd3c9f
commit ede2c5dc75
6 changed files with 82 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/pages/animeimport"
"github.com/animenotifier/notify.moe/pages/animelist"
"github.com/animenotifier/notify.moe/pages/apiview"
"github.com/animenotifier/notify.moe/pages/apiview/apidocs"
"github.com/animenotifier/notify.moe/pages/character"
@ -57,6 +58,9 @@ func Register(app *aero.Application) {
// SoundTrack
app.Post("/api/soundtrack/:id/download", soundtrack.Download)
// AnimeList
app.Post("/api/delete/animelist", animelist.Delete)
// Upload
app.Post("/api/upload/user/image", upload.UserImage)
app.Post("/api/upload/user/cover", upload.UserCover)

View File

@ -49,6 +49,9 @@ func Register(app *aero.Application) {
page.Get(app, "/animelist/hold", animelist.Redirect)
page.Get(app, "/animelist/dropped", animelist.Redirect)
// Delete
page.Get(app, "/animelist/delete", animelist.DeleteConfirmation)
// Compare
page.Get(app, "/compare/animelist/:nick-1/:nick-2", compare.AnimeList)