blob: 9ac623bfe6b7b0a5e7e10baec8eeaf296160930f [file] [log] [blame]
/**
* A module for the firmware
*
* @module app/firmware/index
* @exports app/firmware/index
*/
window.angular && (function (angular) {
'use strict';
angular
.module('app.firmware', [
'ngRoute',
'app.constants',
'app.common.services'
])
// Route configuration
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/firmware/bmc', {
'template': require('./controllers/bmc-controller.html'),
'controller': 'bmcController',
authenticated: true
})
.when('/firmware/server', {
'template': require('./controllers/server-controller.html'),
'controller': 'serverController',
authenticated: true
})
.when('/firmware', {
'template': reqire('./controllers/bmc-controller.html'),
'controller': 'bmcController',
authenticated: true
});
}]);
})(window.angular);