Skip to content

Commit

Permalink
fix: 00081190 missing DICOMWEB_API
Browse files Browse the repository at this point in the history
# Problems
- http://127.0.0.1:8081/raccoon/studies/ that
missing `DICOMWEB_API`: "dicom-web"
- Correct is  http://127.0.0.1:8081/raccoon/dicom-web/studies/

# Solutions
- Add `DICOMWEB_API` to pathname in baseURL
  • Loading branch information
Chinlinlee committed Mar 19, 2023
1 parent 9dcf102 commit 54d8d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DICOMWeb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getBasicURL () {
let port = process.env.DICOMWEB_PORT;
let hostnameSplit = _.compact(process.env.DICOMWEB_HOST.split("/"));
let hostname = hostnameSplit.shift();
let pathname = hostnameSplit.join("/");
let pathname = [...hostnameSplit, ...process.env.DICOMWEB_API.split("/")].join("/");
let basicUrlObj = new urlObj.URL(`${protocol}://${hostname}`);
basicUrlObj.port = port;
basicUrlObj.pathname = pathname;
Expand Down

0 comments on commit 54d8d5a

Please sign in to comment.