2017-06-10 14:53:29 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//
|
|
|
|
// Auto generated controller server router controller
|
|
|
|
//
|
|
|
|
|
|
|
|
crudRouteInit.push(function ($routeProvider, $locationProvider) {
|
|
|
|
$routeProvider.when('/ui/server/routes', {
|
|
|
|
redirectTo: '/ui/server/routes/tech',
|
|
|
|
});
|
|
|
|
$routeProvider.when('/ui/server/routes/tech', {
|
|
|
|
templateUrl: '<%= troot.tmeta.tserver.tslugs.tbase %>/<%= troot.tmeta.tserver.tslugs.tplugin %>/uiAngularServerRoutes/thtml/routes?group1=all,api_server,api_plugin,tentity_rss,tentity_json&group2=tentity_csv,tentity_xml,tentity_angular,tentity_config',
|
|
|
|
controller: XPageServerTechRoutes,
|
|
|
|
});
|
|
|
|
$routeProvider.when('/ui/server/routes/model', {
|
|
|
|
templateUrl: '/api/angular/thtml/routes?group1=moviedb,pagila&group2=all',
|
|
|
|
controller: XPageServerModelRoutes,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function XPageServerTechRoutes($scope, $http) {
|
2017-12-23 21:45:27 +00:00
|
|
|
$http.get('<%= troot.tmeta.tserver.tslugs.tbase %>/<%= troot.tmeta.tserver.tslugs.tserver %>/<%= troot.tmeta.tplugin.serverConfigRoutes.tslug %>?groups=api/server,api/plugin,tentity/json,tentity/xml,tentity/rss,tentity/csv,tentity/angular,tentity/config').then(function(response) {
|
|
|
|
$scope.serverRoutes = response.data.data;
|
2017-06-10 14:53:29 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function XPageServerModelRoutes($scope, $http) {
|
2017-12-23 21:45:27 +00:00
|
|
|
$http.get('<%= troot.tmeta.tserver.tslug %>/json/server/routes?groups=moviedb,pagila').then(function(response) {
|
|
|
|
$scope.serverRoutes = response.data.data;
|
2017-06-10 14:53:29 +00:00
|
|
|
});
|
|
|
|
}
|