blob: 9ac623bfe6b7b0a5e7e10baec8eeaf296160930f [file] [log] [blame]
Iftekharul Islameed35842017-09-06 10:49:48 -05001/**
2 * A module for the firmware
3 *
4 * @module app/firmware/index
5 * @exports app/firmware/index
Iftekharul Islameed35842017-09-06 10:49:48 -05006 */
7
8window.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 Tanousbbcf6702017-10-06 13:53:06 -070021 'template': require('./controllers/bmc-controller.html'),
Iftekharul Islameed35842017-09-06 10:49:48 -050022 'controller': 'bmcController',
23 authenticated: true
24 })
25 .when('/firmware/server', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070026 'template': require('./controllers/server-controller.html'),
Iftekharul Islameed35842017-09-06 10:49:48 -050027 'controller': 'serverController',
28 authenticated: true
29 })
30 .when('/firmware', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070031 'template': reqire('./controllers/bmc-controller.html'),
Iftekharul Islameed35842017-09-06 10:49:48 -050032 'controller': 'bmcController',
33 authenticated: true
34 });
35 }]);
36
37})(window.angular);