diff --git a/modules/welectBidAdapter.js b/modules/welectBidAdapter.js index f9fc57a4834..467b628c944 100644 --- a/modules/welectBidAdapter.js +++ b/modules/welectBidAdapter.js @@ -38,7 +38,7 @@ export const spec = { let domain = bidRequest.params.domain || DEFAULT_DOMAIN; - let url = `https://${domain}/api/v2/preflight/by_alias/${bidRequest.params.placementId}`; + let url = `https://${domain}/api/v2/preflight/${bidRequest.params.placementId}`; let gdprConsent = null; diff --git a/test/spec/modules/welectBidAdapter_spec.js b/test/spec/modules/welectBidAdapter_spec.js index 5f047904c76..571f68038ac 100644 --- a/test/spec/modules/welectBidAdapter_spec.js +++ b/test/spec/modules/welectBidAdapter_spec.js @@ -103,7 +103,7 @@ describe('WelectAdapter', function () { // Formatted requets let request1 = { method: 'POST', - url: 'https://www.welect.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect.de/api/v2/preflight/exampleAlias', data: data1, options: { contentType: 'application/json', @@ -114,7 +114,7 @@ describe('WelectAdapter', function () { let request2 = { method: 'POST', - url: 'https://www.welect2.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect2.de/api/v2/preflight/exampleAlias', data: data2, options: { contentType: 'application/json', @@ -171,7 +171,7 @@ describe('WelectAdapter', function () { } }, method: 'POST', - url: 'https://www.welect.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect.de/api/v2/preflight/exampleAlias', options: { contentType: 'application/json', withCredentials: false,