Skip to content

Commit

Permalink
Merge branch 'feature/v3/zosmf-route' of github.com:zowe/explorer-mvs…
Browse files Browse the repository at this point in the history
… into feature/v3/zosmf-route
  • Loading branch information
1000TurquoisePogs committed Mar 21, 2024
2 parents 663d6b7 + 56985e3 commit dee439d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WebContent/js/utilities/urlUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ export function whichServer() {
return server;
}


// zosmf/
const ZOSMF_PREFIX_LENGTH = 6;

export function atlasAction(endpoint, content) {
// In v3, /ibmzosmf/api/v1 endpoint removes /zosmf part of a /zosmf URL, so string must be trimmed.
let trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH);
const trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH);

return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf${trimmedEndpoint}`, content);
}
Expand Down

0 comments on commit dee439d

Please sign in to comment.