2
0
Fork 0
tcrud/lib/plugin/ui/angular/server/ui-angular-server-routes.js

27 lines
655 B
JavaScript
Raw Permalink Normal View History

2017-06-10 14:53:29 +00:00
module.exports = (function () {
return function UIAngularServerRoutesPlugin() {
this.configPlugin = function (ctx) {
ctx.key = 'uiAngularServerRoutes';
ctx.description = 'Adds an angular server routes page.';
ctx.dependencies.push('angular');
ctx.dependencies.push('serverInfoPlugins');
};
this.configServer = function(ctx) {
ctx.hostTemplateJS('js/server-routes');
ctx.hostTemplateHTML('thtml/routes',true);
ctx.registrateMenuItem({
name: 'Server Routes',
link: ctx.troot.tmeta.tplugin.angular.tbase+'/server/routes',
enable: true,
roles: [],
icon: 'fa fa-road'
},'server');
};
};
})();