Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the overview |
| 3 | * |
| 4 | * @module app/overview/index |
| 5 | * @exports app/overview/index |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 8 | window.angular && (function(angular) { |
| 9 | 'use strict'; |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 11 | angular |
Gunnar Mills | 2b9a0d9 | 2018-07-11 15:10:08 -0500 | [diff] [blame] | 12 | .module('app.overview', ['ngRoute', 'app.common.services']) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 13 | // Route configuration |
| 14 | .config([ |
| 15 | '$routeProvider', |
| 16 | function($routeProvider) { |
| 17 | $routeProvider |
| 18 | .when('/overview/server', { |
| 19 | 'template': |
| 20 | require('./controllers/system-overview-controller.html'), |
| 21 | 'controller': 'systemOverviewController', |
| 22 | authenticated: true |
| 23 | }) |
| 24 | .when('/overview', { |
| 25 | 'template': |
| 26 | require('./controllers/system-overview-controller.html'), |
| 27 | 'controller': 'systemOverviewController', |
| 28 | authenticated: true |
| 29 | }); |
| 30 | } |
| 31 | ]); |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 32 | })(window.angular); |