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 | |
| 8 | window.angular && (function (angular) { |
| 9 | 'use strict'; |
| 10 | |
| 11 | angular |
| 12 | .module('app.configuration', [ |
| 13 | 'ngRoute', |
| 14 | 'app.constants', |
| 15 | 'app.common.services' |
| 16 | ]) |
| 17 | // Route configuration |
| 18 | .config(['$routeProvider', function ($routeProvider) { |
| 19 | $routeProvider |
| 20 | .when('/configuration/network', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 21 | 'template': require('./controllers/network-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 22 | 'controller': 'networkController', |
| 23 | authenticated: true |
| 24 | }) |
| 25 | .when('/configuration/security', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 26 | 'template': require('./controllers/security-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 27 | 'controller': 'securityController', |
| 28 | authenticated: true |
| 29 | }).when('/configuration/date-time', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 30 | 'template': require('./controllers/date-time-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 31 | 'controller': 'dateTimeController', |
| 32 | authenticated: true |
| 33 | }) |
| 34 | .when('/configuration/file', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 35 | 'template': require('./controllers/file-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 36 | 'controller': 'fileController', |
| 37 | authenticated: true |
| 38 | }).when('/configuration', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 39 | 'template': require('./controllers/network-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 40 | 'controller': 'networkController', |
| 41 | authenticated: true |
Michael Davis | 43366db | 2017-05-15 18:12:35 -0500 | [diff] [blame] | 42 | }).when('/configuration/firmware', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 43 | 'template': require('./controllers/firmware-controller.html'), |
Michael Davis | 43366db | 2017-05-15 18:12:35 -0500 | [diff] [blame] | 44 | 'controller': 'firmwareController', |
| 45 | authenticated: true |
| 46 | }); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 47 | }]); |
| 48 | |
| 49 | })(window.angular); |