'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) { $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').success(function(data, status, headers, config) { $scope.serverRoutes = data.data; }); } function XPageServerModelRoutes($scope, $http) { $http.get('<%= troot.tmeta.tserver.tslug %>/json/server/routes?groups=moviedb,pagila').success(function(data, status, headers, config) { $scope.serverRoutes = data.data; }); }