fix(playback): restore playback service and handle chunked proxy responses

This commit is contained in:
2026-05-01 17:27:51 +02:00
committed by Mikkel Elvers
parent 394aad7793
commit 33a939ca81
2 changed files with 11 additions and 2 deletions

View File

@@ -52,7 +52,11 @@ func NewRouter(cfg Config) http.Handler {
middleware.InitAuth(cfg.AuthService)
animeHandler := anime.NewHandler(cfg.JikanClient, cfg.DB)
playbackHandler := playback.NewHandler(nil, cfg.JikanClient)
playbackSvc := playback.NewService(cfg.DB, cfg.SQLDB, playback.Config{
ProxyTokenSecret: cfg.PlaybackProxySecret,
})
playbackHandler := playback.NewHandler(playbackSvc, cfg.JikanClient)
// Serve static files
fs := http.FileServer(http.Dir("./static"))