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