34 lines
574 B
JavaScript
Raw Normal View History

2016-10-04 16:31:52 +02:00
'use strict';
/**
* Schema Dashboard & Studio variables dependencies
*/
2017-01-17 11:51:10 +01:00
const SchemaStudio = function() {
const schema = {
2016-10-04 16:31:52 +02:00
studio: {
type: 'object',
path: 'config/studio.json',
values: {
object: {
enabled: {
type: 'boolean'
},
secretKey: {
type: 'string'
}
}
},
resolver: function(rootValue, value, scope, cb) {
scope.studio = value;
return cb(null, scope.studio);
}
}
};
return schema;
};
module.exports = SchemaStudio;