Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame^] | 1 | /** |
| 2 | * A module for the serverControl |
| 3 | * |
| 4 | * @module app/server-control/index |
| 5 | * @exports app/server-control/index |
| 6 | * @version 0.0.1 |
| 7 | */ |
| 8 | |
| 9 | window.angular && (function (angular) { |
| 10 | 'use strict'; |
| 11 | |
| 12 | angular |
| 13 | .module('app.serverControl', [ |
| 14 | 'ngRoute', |
| 15 | 'app.constants', |
| 16 | 'app.common.services' |
| 17 | ]) |
| 18 | // Route configuration |
| 19 | .config(['$routeProvider', function ($routeProvider) { |
| 20 | $routeProvider |
| 21 | .when('/server-control/bmc-reboot', { |
| 22 | 'templateUrl': 'server-control/controllers/bmc-reboot-controller.html', |
| 23 | 'controller': 'bmcRebootController', |
| 24 | authenticated: true |
| 25 | }) |
| 26 | .when('/server-control/power-operations', { |
| 27 | 'templateUrl': 'server-control/controllers/power-operations-controller.html', |
| 28 | 'controller': 'powerOperationsController', |
| 29 | authenticated: true |
| 30 | }) |
| 31 | .when('/server-control/remote-console', { |
| 32 | 'templateUrl': 'server-control/controllers/remote-console-controller.html', |
| 33 | 'controller': 'remoteConsoleController', |
| 34 | authenticated: true |
| 35 | }) |
| 36 | .when('/server-control', { |
| 37 | 'templateUrl': 'server-control/controllers/power-operations-controller.html', |
| 38 | 'controller': 'powerOperationsController', |
| 39 | authenticated: true |
| 40 | }); |
| 41 | }]); |
| 42 | |
| 43 | })(window.angular); |