Skip to content

Commit

Permalink
refactor: Use module alias for WADO-URI service
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 19, 2023
1 parent 57aaea7 commit ebefd6a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 103 deletions.
55 changes: 0 additions & 55 deletions api-sql/WADO-URI/controller/retrieveInstance.js

This file was deleted.

45 changes: 0 additions & 45 deletions api-sql/WADO-URI/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion api/WADO-URI/controller/retrieveInstance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { WadoUriService, NotFoundInstanceError } = require("../service/WADO-URI.service");
const { WadoUriService, NotFoundInstanceError } = require("@wado-uri-service");
const { Controller } = require("../../controller.class");
const { ApiLogger } = require("../../../utils/logs/api-logger");
const { ApiErrorArrayHandler } = require("@error/api-errors.handler");
Expand Down
1 change: 1 addition & 0 deletions config/jsconfig.sql.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@stow-rs-service": ["./api/dicom-web/controller/STOW-RS/service/stow-rs.service.js"],
"@qido-rs-service": ["./api-sql/dicom-web/controller/QIDO-RS/service/QIDO-RS.service.js"],
"@wado-rs-service": ["./api-sql/dicom-web/controller/WADO-RS/service/WADO-RS.service.js"],
"@wado-uri-service": ["./api-sql/WADO-URI/service/WADO-URI.service.js"],
"@bulkdata-service": ["./api-sql/dicom-web/controller/WADO-RS/bulkdata/service/bulkdata.js"],
"@delete-service": ["./api-sql/dicom-web/controller/WADO-RS/deletion/service/delete.js"],
"@rendered-service": ["./api-sql/dicom-web/controller/WADO-RS/service/rendered.service.js"],
Expand Down
4 changes: 3 additions & 1 deletion config/modula-alias/sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@stow-rs-service": "../../../api/dicom-web/controller/STOW-RS/service/stow-rs.service.js",
"@qido-rs-service": "../../../api-sql/dicom-web/controller/QIDO-RS/service/QIDO-RS.service.js",
"@wado-rs-service": "../../../api-sql/dicom-web/controller/WADO-RS/service/WADO-RS.service.js",
"@wado-uri-service": "../../../api-sql/WADO-URI/service/WADO-URI.service.js",
"@bulkdata-service": "../../../api-sql/dicom-web/controller/WADO-RS/bulkdata/service/bulkdata.js",
"@delete-service": "../../../api-sql/dicom-web/controller/WADO-RS/deletion/service/delete.js",
"@rendered-service": "../../../api-sql/dicom-web/controller/WADO-RS/service/rendered.service.js",
Expand All @@ -22,6 +23,7 @@
"@dimse-study-query-task": "../../../dimse-sql/studyQueryTask.js",
"@dimse-series-query-task": "../../../dimse-sql/seriesQueryTask.js",
"@dimse-instance-query-task": "../../../dimse-sql/instanceQueryTask.js",
"@dimse-utils": "../../../dimse-sql/utils.js"
"@dimse-utils": "../../../dimse-sql/utils.js",
"@dimse": "../../../dimse-sql"
}
}
2 changes: 1 addition & 1 deletion routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ module.exports = function (app) {
app.use("/dicom-web", require("./api/dicom-web/delete.route"));
// app.use("/dicom-web", require("./api/dicom-web/ups-rs.route"));

app.use("/wado", require("./api-sql/WADO-URI"));
app.use("/wado", require("./api/WADO-URI"));
};

0 comments on commit ebefd6a

Please sign in to comment.