* feat: delegating dicom web proxy datasource * fix: configurably allow WADO image loader to issue preflight OPTIONS request * Added documentation and fixed up some error handling from PR review * review comments changes * another small code review fix
39 lines
1017 B
JavaScript
39 lines
1017 B
JavaScript
// TODO: Pull in IWebClientApi from @ohif/core
|
|
// TODO: Use constructor to create an instance of IWebClientApi
|
|
// TODO: Use existing DICOMWeb configuration (previously, appConfig, to configure instance)
|
|
|
|
import { createDicomWebApi } from './DicomWebDataSource/index.js';
|
|
import { createDicomJSONApi } from './DicomJSONDataSource/index.js';
|
|
import { createDicomLocalApi } from './DicomLocalDataSource/index.js';
|
|
import { createDicomWebProxyApi } from './DicomWebProxyDataSource/index.js';
|
|
|
|
/**
|
|
*
|
|
*/
|
|
function getDataSourcesModule() {
|
|
return [
|
|
{
|
|
name: 'dicomweb',
|
|
type: 'webApi',
|
|
createDataSource: createDicomWebApi,
|
|
},
|
|
{
|
|
name: 'dicomwebproxy',
|
|
type: 'webApi',
|
|
createDataSource: createDicomWebProxyApi,
|
|
},
|
|
{
|
|
name: 'dicomjson',
|
|
type: 'jsonApi',
|
|
createDataSource: createDicomJSONApi,
|
|
},
|
|
{
|
|
name: 'dicomlocal',
|
|
type: 'localApi',
|
|
createDataSource: createDicomLocalApi,
|
|
},
|
|
];
|
|
}
|
|
|
|
export default getDataSourcesModule;
|