Skip to content

Commit

Permalink
url fetching corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
suryansh-egov committed Aug 23, 2024
1 parent 9c6c588 commit 33e7c4f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
const getProjectServiceUrl = () => {
// Access the globalConfigs object and retrieve the PROJECT_SEERVICE_PATH configuration.
// If not defined, fallback to default URL `/health-project`.
const url = window.globalConfigs?.getConfig("PROJECT_SEERVICE_PATH") || `/health-project`;

let url = window.globalConfigs?.getConfig("PROJECT_SERVICE_PATH") || `/health-project`;
console.log("url is: ", url);
if (!url.startsWith('/')) {
url = `/${url}`;
}
console.log("new url is:", url);
// Return the constructed URL.
return url;
};
Expand Down

0 comments on commit 33e7c4f

Please sign in to comment.