mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 08:46:42 +00:00
34 lines
574 B
JavaScript
34 lines
574 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Schema Dashboard & Studio variables dependencies
|
|
*/
|
|
|
|
const SchemaStudio = function() {
|
|
const schema = {
|
|
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;
|