Skip to content

Commit

Permalink
#581 adj-srv api.html pathing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Oct 29, 2024
1 parent 5a9c538 commit 436f5b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions adjacent-servers/adjacent-servers-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,11 @@ const createSwaggerInterceptor = (path) => {
return response
.replace(
"'/api'",
`window.location.pathname.replace('/${path}/api.html', '${
process.env.ROOT_PATH || ""
}/${path}/api')`
`window.location.pathname.replace('/${path}/api.html', '/${path}/api')`
)
.replace(
"'/docs/oauth2-redirect'",
`window.location.pathname.replace('/${path}/api.html', '${
process.env.ROOT_PATH || ""
}/${path}/docs/oauth2-redirect')`
`window.location.pathname.replace('/${path}/api.html', '/${path}/docs/oauth2-redirect')`
); // manipulate response and return the result
}
return responseBuffer;
Expand Down

0 comments on commit 436f5b2

Please sign in to comment.