xref: /openbmc/phosphor-webui/app/redfish/index.js (revision e8634e6b)
1/**
2 * A module for redfish
3 *
4 * @module app/redfish/index
5 * @exports app/redfish/index
6 */
7
8window.angular && (function(angular) {
9  'use strict';
10
11  angular
12      .module('app.redfish', ['ngRoute', 'app.redfish'])
13      // Route configuration
14      .config([
15        '$routeProvider',
16        function($routeProvider) {
17          $routeProvider.when('/redfish/:path*/', {
18            'template': require('./controllers/redfish-controller.html'),
19            'controller': 'redfishController',
20            authenticated: true
21          });
22        }
23      ]);
24})(window.angular);
25