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