Change navigation structure
Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/firmware/index.js b/app/firmware/index.js
new file mode 100644
index 0000000..8094a40
--- /dev/null
+++ b/app/firmware/index.js
@@ -0,0 +1,38 @@
+/**
+ * A module for the firmware
+ *
+ * @module app/firmware/index
+ * @exports app/firmware/index
+ * @version 0.0.1
+ */
+
+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', {
+ 'templateUrl': 'firmware/controllers/bmc-controller.html',
+ 'controller': 'bmcController',
+ authenticated: true
+ })
+ .when('/firmware/server', {
+ 'templateUrl': 'firmware/controllers/server-controller.html',
+ 'controller': 'serverController',
+ authenticated: true
+ })
+ .when('/firmware', {
+ 'templateUrl': 'firmware/controllers/bmc-controller.html',
+ 'controller': 'bmcController',
+ authenticated: true
+ });
+ }]);
+
+})(window.angular);