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