27 lines
655 B
JavaScript
27 lines
655 B
JavaScript
|
|
||
|
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');
|
||
|
};
|
||
|
};
|
||
|
})();
|