blob: f6339fe0dadeea80b8dd38cbd2988b72b2e9028f [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
6 * @version 0.0.1
7 */
8
9window.angular && (function (angular) {
10 'use strict';
11
12 angular
13 .module('app.configuration', [
14 'ngRoute',
15 'app.constants',
16 'app.common.services'
17 ])
18 // Route configuration
19 .config(['$routeProvider', function ($routeProvider) {
20 $routeProvider
21 .when('/configuration/network', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070022 'template': require('./controllers/network-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050023 'controller': 'networkController',
24 authenticated: true
25 })
26 .when('/configuration/security', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070027 'template': require('./controllers/security-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050028 'controller': 'securityController',
29 authenticated: true
30 }).when('/configuration/date-time', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070031 'template': require('./controllers/date-time-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050032 'controller': 'dateTimeController',
33 authenticated: true
34 })
35 .when('/configuration/file', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070036 'template': require('./controllers/file-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050037 'controller': 'fileController',
38 authenticated: true
39 }).when('/configuration', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070040 'template': require('./controllers/network-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050041 'controller': 'networkController',
42 authenticated: true
Michael Davis43366db2017-05-15 18:12:35 -050043 }).when('/configuration/firmware', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070044 'template': require('./controllers/firmware-controller.html'),
Michael Davis43366db2017-05-15 18:12:35 -050045 'controller': 'firmwareController',
46 authenticated: true
47 });
Iftekharul Islamcd789502017-04-19 14:37:55 -050048 }]);
49
50})(window.angular);