36 lines
728 B
JavaScript
36 lines
728 B
JavaScript
|
|
||
|
// TODO: move to default-format-json.js ??
|
||
|
|
||
|
module.exports = (function () {
|
||
|
|
||
|
return function FormatJsonPlugin() {
|
||
|
|
||
|
this.configPlugin = function (ctx) {
|
||
|
ctx.key = 'formatJSON';
|
||
|
ctx.description = 'Export the tentity api in json format.';
|
||
|
ctx.localDir = __dirname;
|
||
|
ctx.localConfigTemplate = 'format-json.json';
|
||
|
};
|
||
|
|
||
|
// flag that we support these all crud types.
|
||
|
|
||
|
this.configApiTListExport = function (ctx) {
|
||
|
};
|
||
|
|
||
|
this.configApiTCreateExport = function (ctx) {
|
||
|
};
|
||
|
|
||
|
this.configApiTReadExport = function (ctx) {
|
||
|
};
|
||
|
|
||
|
this.configApiTEditExport = function (ctx) {
|
||
|
};
|
||
|
|
||
|
this.configApiTDeleteExport = function (ctx) {
|
||
|
};
|
||
|
|
||
|
this.configApiTCountExport = function (ctx) {
|
||
|
};
|
||
|
};
|
||
|
})();
|