Skip to content

Commit

Permalink
updated url
Browse files Browse the repository at this point in the history
  • Loading branch information
Anouk91 committed Dec 30, 2024
1 parent b093ec6 commit 53bbf3e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,6 @@ BFF_CMS_BASE_URL=$BFF_MOCK_API_BASE_URL/cms
BFF_AMSAPP_ADMINISTRATIENUMMER_DELIVERY_ENDPOINT=$BFF_MOCK_API_BASE_URL/amsapp/session/credentials
BFF_AMSAPP_API_KEY=$DEV_API_KEY
BFF_AMSAPP_NONCE='123456789123456789123456'

# SalesForce
BFF_SALESFORCE_API_BASE_URL=$BFF_MOCK_API_BASE_URL/salesforce
2 changes: 1 addition & 1 deletion mocks/routes/salesforce.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const settings = require('../settings.js');
module.exports = [
{
id: 'get-salesforce',
url: `${settings.MOCK_BASE_PATH}/ams/mijnamsterdam/salesforce/contactmomenten/services/apexrest/klantinteracties/v1.0/klantcontacten/`,
url: `${settings.MOCK_BASE_PATH}/salesforce/contactmomenten/services/apexrest/klantinteracties/v1.0/klantcontacten/`,
method: 'GET',
variants: [
{
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-http-proxy": "^1.6.6",
"@types/express-session": "^1.18.1",
"@types/flat-cache": "^2.0.2",
"@types/js-cookie": "^3.0.6",
"@types/jsonpath": "^0.2.4",
Expand All @@ -69,6 +70,7 @@
"@types/node-jose": "^1.1.13",
"@types/pg": "^8.11.10",
"@types/proj4": "^2.5.5",
"@types/qs": "^6.9.17",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-router-dom": "^5.3.3",
Expand Down Expand Up @@ -97,9 +99,12 @@
"express-basic-auth": "^1.2.1",
"express-http-proxy": "^2.1.1",
"express-openid-connect": "^2.17.1",
"flat-cache": "^6.1.4",
"flat-cache": "^6.1.3",
"express-session": "^1.18.1",
"focus-trap-react": "^10.3.0",
"form-data": "^4.0.1",
"fuse.js": "^7.0.0",
"history": "^5.3.0",
"html-to-ast": "^0.0.6",
"include-media": "^2.0.0",
"install": "^0.13.0",
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/salesforce/contactmomenten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function fetchContactmomenten(
) {
const requestConfig: DataRequestConfig = {
formatUrl({ url }) {
return `${url}?hadBetrokkene__uuid=${authProfileAndToken.profile.id}`;
return `${url}/contactmomenten/services/apexrest/klantinteracties/v1.0/klantcontacten/?hadBetrokkene__uuid=${authProfileAndToken.profile.id}`;
},
transformResponse(responseData: ContactMomentenResponse) {
return responseData.results ?? null;
Expand Down

0 comments on commit 53bbf3e

Please sign in to comment.