Iftekharul Islam | eed3584 | 2017-09-06 10:49:48 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the firmware |
| 3 | * |
| 4 | * @module app/firmware/index |
| 5 | * @exports app/firmware/index |
Iftekharul Islam | eed3584 | 2017-09-06 10:49:48 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | window.angular && (function (angular) { |
| 9 | 'use strict'; |
| 10 | |
| 11 | angular |
| 12 | .module('app.firmware', [ |
| 13 | 'ngRoute', |
| 14 | 'app.constants', |
| 15 | 'app.common.services' |
| 16 | ]) |
| 17 | // Route configuration |
| 18 | .config(['$routeProvider', function ($routeProvider) { |
| 19 | $routeProvider |
| 20 | .when('/firmware/bmc', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 21 | 'template': require('./controllers/bmc-controller.html'), |
Iftekharul Islam | eed3584 | 2017-09-06 10:49:48 -0500 | [diff] [blame] | 22 | 'controller': 'bmcController', |
| 23 | authenticated: true |
| 24 | }) |
| 25 | .when('/firmware/server', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 26 | 'template': require('./controllers/server-controller.html'), |
Iftekharul Islam | eed3584 | 2017-09-06 10:49:48 -0500 | [diff] [blame] | 27 | 'controller': 'serverController', |
| 28 | authenticated: true |
| 29 | }) |
| 30 | .when('/firmware', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 31 | 'template': reqire('./controllers/bmc-controller.html'), |
Iftekharul Islam | eed3584 | 2017-09-06 10:49:48 -0500 | [diff] [blame] | 32 | 'controller': 'bmcController', |
| 33 | authenticated: true |
| 34 | }); |
| 35 | }]); |
| 36 | |
| 37 | })(window.angular); |