blob: abe01907732bc0a6bffc36311b1519aa052f94d4 [file] [log] [blame]
Iftekharul Islamcd789502017-04-19 14:37:55 -05001/**
2 * A module for the configuration
3 *
4 * @module app/configuration/index
5 * @exports app/configuration/index
Iftekharul Islamcd789502017-04-19 14:37:55 -05006 */
7
Andrew Geisslerba5e3f32018-05-24 10:58:00 -07008window.angular && (function(angular) {
9 'use strict';
Iftekharul Islamcd789502017-04-19 14:37:55 -050010
Andrew Geisslerba5e3f32018-05-24 10:58:00 -070011 angular
Andrew Geisslerd27bb132018-05-24 11:07:27 -070012 .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 Islamcd789502017-04-19 14:37:55 -050052
53})(window.angular);