blob: 0b5499e0fca2593ee55077137e433683e92958ba [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
8window.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 Tanousbbcf6702017-10-06 13:53:06 -070021 'template': require('./controllers/network-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050022 'controller': 'networkController',
23 authenticated: true
24 })
25 .when('/configuration/security', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070026 'template': require('./controllers/security-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050027 'controller': 'securityController',
28 authenticated: true
29 }).when('/configuration/date-time', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070030 'template': require('./controllers/date-time-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050031 'controller': 'dateTimeController',
32 authenticated: true
33 })
34 .when('/configuration/file', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070035 'template': require('./controllers/file-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050036 'controller': 'fileController',
37 authenticated: true
38 }).when('/configuration', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070039 'template': require('./controllers/network-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050040 'controller': 'networkController',
41 authenticated: true
Michael Davis43366db2017-05-15 18:12:35 -050042 }).when('/configuration/firmware', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070043 'template': require('./controllers/firmware-controller.html'),
Michael Davis43366db2017-05-15 18:12:35 -050044 'controller': 'firmwareController',
45 authenticated: true
46 });
Iftekharul Islamcd789502017-04-19 14:37:55 -050047 }]);
48
49})(window.angular);