Skip to content

Commit

Permalink
MOSIP-36952: Updated API call in create policy group (#883)
Browse files Browse the repository at this point in the history
Signed-off-by: Swetha K <[email protected]>
Co-authored-by: Swetha K <[email protected]>
  • Loading branch information
SwethaKrish4 and Swetha K authored Oct 30, 2024
1 parent b0b2c86 commit 440a2bf
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ function CreatePolicyGroup() {
desc: trimAndReplace(policyGroupDesc)
});
try {
const response = await HttpService.post(getPolicyManagerUrl(`/policies/group/new`, process.env.NODE_ENV), request, {
headers: {
'Content-Type': 'application/json'
}
const response = await HttpService({
url: getPolicyManagerUrl('/policies/group/new', process.env.NODE_ENV),
method: 'post',
baseURL: process.env.NODE_ENV !== 'production' ? '' : window._env_.REACT_APP_POLICY_MANAGER_API_BASE_URL,
data: request
});
if (response) {
const responseData = response.data;
Expand Down

0 comments on commit 440a2bf

Please sign in to comment.