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( 13 'app.overview', ['ngRoute', 'app.constants', 'app.common.services']) 14 // Route configuration 15 .config([ 16 '$routeProvider', 17 function($routeProvider) { 18 $routeProvider 19 .when('/overview/server', { 20 'template': 21 require('./controllers/system-overview-controller.html'), 22 'controller': 'systemOverviewController', 23 authenticated: true 24 }) 25 .when('/overview', { 26 'template': 27 require('./controllers/system-overview-controller.html'), 28 'controller': 'systemOverviewController', 29 authenticated: true 30 }); 31 } 32 ]); 33 34})(window.angular); 35