2016-11-23 03:44:28 +00:00
|
|
|
package airing
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
"github.com/animenotifier/arn"
|
|
|
|
"github.com/animenotifier/notify.moe/components"
|
2016-11-23 05:42:51 +00:00
|
|
|
"github.com/animenotifier/notify.moe/jobs"
|
2016-11-23 03:44:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Get ...
|
|
|
|
func Get(ctx *aero.Context) string {
|
2016-11-23 05:42:51 +00:00
|
|
|
var airingAnimeCache jobs.AiringAnimeCache
|
|
|
|
arn.GetObject("Cache", "airingAnime", &airingAnimeCache)
|
|
|
|
return ctx.HTML(components.Airing(airingAnimeCache.Anime))
|
2016-11-23 03:44:28 +00:00
|
|
|
}
|