summaryrefslogtreecommitdiffstats
path: root/app/overview/index.js
blob: 060d5655d84569a694cc860b483c00484571df9f (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
25
26
27
28
29
30
31
32
/**
 * A module for the overview
 *
 * @module app/overview/index
 * @exports app/overview/index
 */

window.angular && (function(angular) {
  'use strict';

  angular
      .module('app.overview', ['ngRoute', 'app.common.services'])
      // Route configuration
      .config([
        '$routeProvider',
        function($routeProvider) {
          $routeProvider
              .when('/overview/server', {
                'template':
                    require('./controllers/system-overview-controller.html'),
                'controller': 'systemOverviewController',
                authenticated: true
              })
              .when('/overview', {
                'template':
                    require('./controllers/system-overview-controller.html'),
                'controller': 'systemOverviewController',
                authenticated: true
              });
        }
      ]);
})(window.angular);
OpenPOWER on IntegriCloud