mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 00:37:38 +00:00
25 lines
399 B
JavaScript
25 lines
399 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Schema global variables dependencies
|
|
*/
|
|
|
|
// Public node modules
|
|
const _ = require('lodash');
|
|
|
|
const SchemaGlobal = function(app) {
|
|
const schema = {};
|
|
|
|
_.forEach(app.config.globals, function(value, key) {
|
|
schema[key] = {
|
|
type: 'boolean',
|
|
nested: 'globals',
|
|
path: 'config/globals.json'
|
|
};
|
|
});
|
|
|
|
return schema;
|
|
};
|
|
|
|
module.exports = SchemaGlobal;
|