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