Skip to content

Commit

Permalink
EMP-3684 changing urls for docker-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaGciaSchz committed Mar 26, 2024
1 parent 3185c20 commit 5b8e4a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/adapter/docker.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ type DockerEndpoints = Exclude<keyof XComponentsAdapter, 'tagging'>;
function resolveEmpathyEndpoint(endpoint: DockerEndpoints, context: Record<string, any>): 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<DockerEndpoints, string> = {
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`
};
Expand Down

0 comments on commit 5b8e4a3

Please sign in to comment.