Add Redfish into the web-ui
Currently only GET is supported, but to add PATCH
in the future for redfish, support should be moved from
being hosted directly by bmcweb into the webui.
Tested-by:
Navigated to http://localhost:8080/#/redfish/v1/ with
bmc attached and was able to view all of redfish. Also
tested on platform.
Change-Id: I1dc3936b6b48835a1f69698fcb4fd6fcdb6d91ac
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/app/redfish/index.js b/app/redfish/index.js
new file mode 100644
index 0000000..61eb762
--- /dev/null
+++ b/app/redfish/index.js
@@ -0,0 +1,24 @@
+/**
+ * A module for redfish
+ *
+ * @module app/redfish/index
+ * @exports app/redfish/index
+ */
+
+window.angular && (function(angular) {
+ 'use strict';
+
+ angular
+ .module('app.redfish', ['ngRoute', 'app.redfish'])
+ // Route configuration
+ .config([
+ '$routeProvider',
+ function($routeProvider) {
+ $routeProvider.when('/redfish/:path*/', {
+ 'template': require('./controllers/redfish-controller.html'),
+ 'controller': 'redfishController',
+ authenticated: true
+ });
+ }
+ ]);
+})(window.angular);