Added background jobs UI

This commit is contained in:
2018-04-28 21:17:44 +02:00
parent 59633707c1
commit 262b6018d1
7 changed files with 122 additions and 11 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/animenotifier/notify.moe/pages/animeimport"
"github.com/animenotifier/notify.moe/pages/apiview"
"github.com/animenotifier/notify.moe/pages/apiview/apidocs"
"github.com/animenotifier/notify.moe/pages/editor/jobs"
"github.com/animenotifier/notify.moe/pages/me"
"github.com/animenotifier/notify.moe/pages/notifications"
"github.com/animenotifier/notify.moe/pages/popular"
@ -45,4 +46,7 @@ func Register(l *layout.Layout, app *aero.Application) {
// Import anime
app.Post("/api/import/kitsu/anime/:id", animeimport.Kitsu)
app.Post("/api/delete/kitsu/anime/:id", animeimport.DeleteKitsu)
// Jobs
app.Post("/api/job/:job/start", jobs.Start)
}