Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the configuration |
| 3 | * |
| 4 | * @module app/configuration/index |
| 5 | * @exports app/configuration/index |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -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 | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 11 | angular |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame^] | 12 | .module( |
| 13 | 'app.configuration', |
| 14 | ['ngRoute', 'app.constants', 'app.common.services']) |
| 15 | // Route configuration |
| 16 | .config([ |
| 17 | '$routeProvider', |
| 18 | function($routeProvider) { |
| 19 | $routeProvider |
| 20 | .when('/configuration/network', { |
| 21 | 'template': require('./controllers/network-controller.html'), |
| 22 | 'controller': 'networkController', |
| 23 | authenticated: true |
| 24 | }) |
| 25 | .when('/configuration/security', { |
| 26 | 'template': require('./controllers/security-controller.html'), |
| 27 | 'controller': 'securityController', |
| 28 | authenticated: true |
| 29 | }) |
| 30 | .when('/configuration/date-time', { |
| 31 | 'template': require('./controllers/date-time-controller.html'), |
| 32 | 'controller': 'dateTimeController', |
| 33 | authenticated: true |
| 34 | }) |
| 35 | .when('/configuration/file', { |
| 36 | 'template': require('./controllers/file-controller.html'), |
| 37 | 'controller': 'fileController', |
| 38 | authenticated: true |
| 39 | }) |
| 40 | .when('/configuration', { |
| 41 | 'template': require('./controllers/network-controller.html'), |
| 42 | 'controller': 'networkController', |
| 43 | authenticated: true |
| 44 | }) |
| 45 | .when('/configuration/firmware', { |
| 46 | 'template': require('./controllers/firmware-controller.html'), |
| 47 | 'controller': 'firmwareController', |
| 48 | authenticated: true |
| 49 | }); |
| 50 | } |
| 51 | ]); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 52 | |
| 53 | })(window.angular); |