package anime import ( "net/http" "github.com/aerogo/aero" "github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/components" ) // Relations ... func Relations(ctx aero.Context) error { user := arn.GetUserFromContext(ctx) id := ctx.Get("id") anime, err := arn.GetAnime(id) if err != nil { return ctx.Error(http.StatusNotFound, "Anime not found", err) } return ctx.HTML(components.AnimeRelations(anime, user, true)) }