Skip to content

Commit

Permalink
Merge pull request #561 from ianmcorvidae/core-1971
Browse files Browse the repository at this point in the history
CORE-1971: Add the include-defaults flag to the endpoint for 'getToolDetails'.
  • Loading branch information
ianmcorvidae authored Jan 4, 2024
2 parents 442f18e + 6dfdc20 commit f86eb47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/serviceFacades/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ function getToolPermissions({ tools }) {
});
}

function getToolDetails({ id, isAdmin = false }) {
function getToolDetails({ id, isAdmin = false, includeDefaults = false }) {
return callApi({
endpoint: isAdmin ? `/api/admin/tools/${id}` : `/api/tools/${id}`,
endpoint: isAdmin
? `/api/admin/tools/${id}?include-defaults=${includeDefaults}`
: `/api/tools/${id}?include-defaults=${includeDefaults}`,
method: "GET",
});
}
Expand Down

0 comments on commit f86eb47

Please sign in to comment.