Refactoring servers configuration structure
This commit is contained in:
1 parent
624d2aeaf5
commit
b33ce54188
20 files changed
+173
-118
No files matched your search
+3
-3
@@ -6,12 +6,12 @@ function parseUrl(url) {
|
||||
|
||||
Template.serverInformationModal.helpers({
|
||||
serverInformation: function() {
|
||||
// TODO: change for Collections
|
||||
var defaultServiceType = Meteor.settings && Meteor.settings.defaultServiceType || 'dicomWeb';
|
||||
var serviceInfo = Meteor.settings[defaultServiceType];
|
||||
var serviceInfo = Meteor.settings.servers[defaultServiceType];
|
||||
if (defaultServiceType === 'dicomWeb') {
|
||||
var serverInformationDicom = [];
|
||||
var endpoints = serviceInfo['endpoints'];
|
||||
endpoints.forEach(function(endpoint) {
|
||||
serviceInfo.forEach(function(endpoint) {
|
||||
var parsedUrl = parseUrl(endpoint.qidoRoot);
|
||||
serverInformationDicom.push({
|
||||
host: parsedUrl.hostname,
|
||||
|
||||
Reference in new issue
Block a user