feat(indices): add authenticated OpenFIGI search

Add the bounded OpenFIGI v3 adapter, authenticated search route, and server-side configuration.

Refs #3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 22:31:35 +01:00
parent 461f525f20
commit 5cb45138df
15 changed files with 741 additions and 16 deletions

View File

@ -11,6 +11,7 @@ import (
"github.com/tradarr/backend/internal/config"
"github.com/tradarr/backend/internal/crypto"
"github.com/tradarr/backend/internal/database"
"github.com/tradarr/backend/internal/indices/openfigi"
"github.com/tradarr/backend/internal/models"
"github.com/tradarr/backend/internal/scheduler"
"github.com/tradarr/backend/internal/scraper"
@ -60,6 +61,7 @@ func main() {
h := handlers.New(repo, cfg, enc, registry, pipeline, sched)
h.SetGenerationUseCase(useCase)
h.SetIndexSearcher(openfigi.New(openfigi.Config{APIKey: cfg.OpenFIGIAPIKey, Timeout: cfg.OpenFIGITimeout}, nil))
r := api.SetupRouter(h, cfg.JWTSecret)
addr := fmt.Sprintf(":%s", cfg.Port)