diff --git a/internal/web/server.go b/internal/web/server.go index 0723985..a3b7240 100644 --- a/internal/web/server.go +++ b/internal/web/server.go @@ -14,10 +14,10 @@ import ( "strings" "time" + "git.leaktechnologies.dev/stu/Goondex/internal/config" "git.leaktechnologies.dev/stu/Goondex/internal/db" import_service "git.leaktechnologies.dev/stu/Goondex/internal/import" "git.leaktechnologies.dev/stu/Goondex/internal/model" - "git.leaktechnologies.dev/stu/Goondex/internal/config" "git.leaktechnologies.dev/stu/Goondex/internal/scraper/adultemp" "git.leaktechnologies.dev/stu/Goondex/internal/scraper/tpdb" "git.leaktechnologies.dev/stu/Goondex/internal/sync" @@ -1391,14 +1391,14 @@ func (s *Server) handleAPISettingsKeys(w http.ResponseWriter, r *http.Request) { case http.MethodGet: keys := config.GetAPIKeys() resp := map[string]interface{}{ - "tpdbConfigured": keys.TPDBAPIKey != "", - "aeConfigured": keys.AEAPIKey != "", - "stashdbConfigured": keys.StashDBAPIKey != "", - "stashdbEndpoint": keys.StashDBEndpoint, - "tpdb_api_key": keys.TPDBAPIKey, // local-only UI; if you prefer, mask these - "ae_api_key": keys.AEAPIKey, - "stashdb_api_key": keys.StashDBAPIKey, - "stashdb_endpoint": keys.StashDBEndpoint, // duplicate for UI convenience + "tpdbConfigured": keys.TPDBAPIKey != "", + "aeConfigured": keys.AEAPIKey != "", + "stashdbConfigured": keys.StashDBAPIKey != "", + "stashdbEndpoint": keys.StashDBEndpoint, + "tpdb_api_key": keys.TPDBAPIKey, // local-only UI; if you prefer, mask these + "ae_api_key": keys.AEAPIKey, + "stashdb_api_key": keys.StashDBAPIKey, + "stashdb_endpoint": keys.StashDBEndpoint, // duplicate for UI convenience } json.NewEncoder(w).Encode(APIResponse{ Success: true, diff --git a/internal/web/templates/dashboard.html b/internal/web/templates/dashboard.html index 894db39..a663312 100644 --- a/internal/web/templates/dashboard.html +++ b/internal/web/templates/dashboard.html @@ -96,12 +96,12 @@
Full-library sync with seamless enrichment