From 5b8e4a334e61e1b4f2d462fa8d9891c36a75c367 Mon Sep 17 00:00:00 2001 From: AnaGciaSchz Date: Tue, 26 Mar 2024 11:41:53 +0100 Subject: [PATCH] EMP-3684 changing urls for docker-adapter --- src/adapter/docker.adapter.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/adapter/docker.adapter.ts b/src/adapter/docker.adapter.ts index 0135b424..a55ec061 100644 --- a/src/adapter/docker.adapter.ts +++ b/src/adapter/docker.adapter.ts @@ -61,15 +61,15 @@ type DockerEndpoints = Exclude; function resolveEmpathyEndpoint(endpoint: DockerEndpoints, context: Record): string { const { empathyAPIHost, instance } = context; const endpointHost: string = empathyAPIHost ? empathyAPIHost : 'localhost:8080'; - const endpointInstance: string = instance ? instance : 'empathy'; + const endpointInstance: string = instance ? instance : 'imdb'; const empathyEndpoints: Record = { - search: `https://${endpointHost}/search/v1/query/${endpointInstance}/search`, - popularSearches: `https://${endpointHost}/search/v1/query/${endpointInstance}/empathize`, - recommendations: `https://${endpointHost}/search/v1/query/${endpointInstance}/topclicked`, + search: `https://${endpointHost}/query/${endpointInstance}/search`, + popularSearches: `https://${endpointHost}/query/${endpointInstance}/empathize`, + recommendations: `https://${endpointHost}/query/${endpointInstance}/topclicked`, nextQueries: `https://${endpointHost}/nextqueries/${endpointInstance}`, - querySuggestions: `https://${endpointHost}/search/v1/query/${endpointInstance}/empathize`, + querySuggestions: `https://${endpointHost}/query/${endpointInstance}/empathize`, relatedTags: `https://${endpointHost}/relatedtags/${endpointInstance}`, - identifierResults: `https://${endpointHost}/search/v1/query/${endpointInstance}/skusearch`, + identifierResults: `https://${endpointHost}/query/${endpointInstance}/skusearch`, semanticQueries: `https://${endpointHost}/semantics-api/search_single/${endpointInstance}`, experienceControls: `https://${endpointHost}/config/v1/public/configs` };