blob: f25e18eade9698a4a512221a9c6e3f3a9f2efc25 [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);