summaryrefslogtreecommitdiffstats
path: root/app/redfish/index.js
blob: 61eb762eabed1bca847d2a7d61ee429c4ddb331c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
OpenPOWER on IntegriCloud