summaryrefslogtreecommitdiffstats
path: root/app/overview/index.js
blob: 5d0d2401ad2de2874aeef0dc7da82563a1cb263c (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
33
/**
 * A module for the overview
 *
 * @module app/overview/index
 * @exports app/overview/index
 * @version 0.0.1
 */

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

    angular
        .module('app.overview', [
            'ngRoute',
            'app.constants',
            '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