blob: 869af04672b83b652dc4de113bb483970e50be78 [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
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', {
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 }).when('/configuration/date-time', {
30 'template': require('./controllers/date-time-controller.html'),
31 'controller': 'dateTimeController',
32 authenticated: true
33 })
34 .when('/configuration/file', {
35 'template': require('./controllers/file-controller.html'),
36 'controller': 'fileController',
37 authenticated: true
38 }).when('/configuration', {
39 'template': require('./controllers/network-controller.html'),
40 'controller': 'networkController',
41 authenticated: true
42 }).when('/configuration/firmware', {
43 'template': require('./controllers/firmware-controller.html'),
44 'controller': 'firmwareController',
45 authenticated: true
46 });
47 }]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050048
49})(window.angular);