xref: /openbmc/phosphor-webui/app/overview/index.js (revision ba5e3f3484c0de46f4f5fc5baf5804648179a9eb)
1/**
2 * A module for the overview
3 *
4 * @module app/overview/index
5 * @exports app/overview/index
6 */
7
8window.angular && (function(angular) {
9  'use strict';
10
11  angular
12    .module('app.overview', [
13      'ngRoute',
14      'app.constants',
15      'app.common.services'
16    ])
17    // Route configuration
18    .config(['$routeProvider', function($routeProvider) {
19      $routeProvider
20        .when('/overview/server', {
21          'template': require('./controllers/system-overview-controller.html'),
22          'controller': 'systemOverviewController',
23          authenticated: true
24        })
25        .when('/overview', {
26          'template': require('./controllers/system-overview-controller.html'),
27          'controller': 'systemOverviewController',
28          authenticated: true
29        });
30    }]);
31
32})(window.angular);
33