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', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 22 | 'template': require('./controllers/bmc-reboot-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 23 | 'controller': 'bmcRebootController', |
| 24 | authenticated: true |
| 25 | }) |
Michael Davis | 9dd479d | 2017-08-18 16:35:00 -0500 | [diff] [blame] | 26 | .when('/server-control/server-led', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 27 | 'template': require('../server-health/controllers/unit-id-controller.html'), |
Michael Davis | 9dd479d | 2017-08-18 16:35:00 -0500 | [diff] [blame] | 28 | 'controller': 'unitIdController', |
| 29 | authenticated: true |
| 30 | }) |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 31 | .when('/server-control/power-operations', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 32 | 'template': require('./controllers/power-operations-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 33 | 'controller': 'powerOperationsController', |
| 34 | authenticated: true |
| 35 | }) |
| 36 | .when('/server-control/remote-console', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 37 | 'template': require('./controllers/remote-console-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 38 | 'controller': 'remoteConsoleController', |
| 39 | authenticated: true |
| 40 | }) |
Iftekharul Islam | c4172b5 | 2017-09-06 10:43:20 -0500 | [diff] [blame] | 41 | .when('/server-control/remote-console-window', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 42 | 'template': require('./controllers/remote-console-window-controller.html'), |
Iftekharul Islam | c4172b5 | 2017-09-06 10:43:20 -0500 | [diff] [blame] | 43 | 'controller': 'remoteConsoleWindowController', |
| 44 | authenticated: true |
| 45 | }) |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 46 | .when('/server-control', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 47 | 'template': require('./controllers/power-operations-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 48 | 'controller': 'powerOperationsController', |
| 49 | authenticated: true |
| 50 | }); |
| 51 | }]); |
| 52 | |
| 53 | })(window.angular); |