Fix '/api/v1/movies/popular' route

This commit is contained in:
2025-11-21 16:29:08 +02:00
parent d9e48495f7
commit 65e7ff90bd
11 changed files with 220 additions and 239 deletions

View File

@@ -32,13 +32,6 @@ type Config struct {
func New() *Config {
mongoURI := getMongoURI()
kpAPIKey := getEnv(EnvKPAPIKey, "")
if kpAPIKey == "" {
log.Printf("[Config] ⚠️ KPAPI_KEY is not set")
} else {
log.Printf("[Config] KPAPI_KEY is set (first 10 chars): %s...", kpAPIKey[:10])
}
return &Config{
MongoURI: mongoURI,
@@ -60,7 +53,7 @@ func New() *Config {
FrontendURL: getEnv(EnvFrontendURL, ""),
VibixHost: getEnv(EnvVibixHost, DefaultVibixHost),
VibixToken: getEnv(EnvVibixToken, ""),
KPAPIKey: kpAPIKey,
KPAPIKey: getEnv(EnvKPAPIKey, ""),
HDVBToken: getEnv(EnvHDVBToken, ""),
KPAPIBaseURL: getEnv("KPAPI_BASE_URL", DefaultKPAPIBase),
}