refactor: move anime handler from subdirectory

This commit is contained in:
2026-05-28 12:38:00 +02:00
committed by Milas Holsting
parent f80a52b171
commit a71fab0c35

View File

@@ -1,4 +1,4 @@
package handler
package anime
import (
"context"
@@ -39,14 +39,6 @@ type cachedWeekSchedule struct {
value animeschedule.WeekSchedule
}
func wrapAnimes(in []jikan.Anime) []domain.Anime {
out := make([]domain.Anime, 0, len(in))
for _, a := range in {
out = append(out, domain.Anime{Anime: a})
}
return out
}
func NewAnimeHandler(svc Service, watchlistSvc domain.WatchlistService) *AnimeHandler {
return &AnimeHandler{
svc: svc,