2
0
Fork 0
tcrud/lib/plugin/server/config/config-tview.js

24 lines
539 B
JavaScript
Raw Normal View History

2017-06-10 14:53:29 +00:00
var configRegistry = require('./../../../config-registry');
module.exports = (function () {
return function ServerConfigTViewPlugin() {
this.configPlugin = function (ctx) {
ctx.key = 'serverConfigTView';
ctx.description = 'Exports tentity tviews.';
ctx.localDir = __dirname;
ctx.localConfigTemplate = 'config-tview.json';
};
this.configApi = function(ctx) {
ctx.server.get(ctx.createSlugApiTEntityBase(),ctx.renderFunctionJSON(function () {
return {
tview: ctx.tview
}
}));
};
};
})();