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 |
Gunnar Mills | 2b9a0d9 | 2018-07-11 15:10:08 -0500 | [diff] [blame] | 12 | .module('app.configuration', ['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('/configuration/network', { |
| 19 | 'template': require('./controllers/network-controller.html'), |
| 20 | 'controller': 'networkController', |
| 21 | authenticated: true |
| 22 | }) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 23 | .when('/configuration/date-time', { |
| 24 | 'template': require('./controllers/date-time-controller.html'), |
| 25 | 'controller': 'dateTimeController', |
| 26 | authenticated: true |
| 27 | }) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 28 | .when('/configuration', { |
| 29 | 'template': require('./controllers/network-controller.html'), |
| 30 | 'controller': 'networkController', |
| 31 | authenticated: true |
| 32 | }) |
Gunnar Mills | ff64c54 | 2018-08-24 15:49:09 -0500 | [diff] [blame^] | 33 | .when('/configuration/snmp', { |
| 34 | 'template': require('./controllers/snmp-controller.html'), |
| 35 | 'controller': 'snmpController', |
| 36 | authenticated: true |
| 37 | }) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 38 | .when('/configuration/firmware', { |
| 39 | 'template': require('./controllers/firmware-controller.html'), |
| 40 | 'controller': 'firmwareController', |
| 41 | authenticated: true |
| 42 | }); |
| 43 | } |
| 44 | ]); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 45 | })(window.angular); |