summaryrefslogtreecommitdiffstats
path: root/app/configuration/index.js
blob: f6339fe0dadeea80b8dd38cbd2988b72b2e9028f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
 * A module for the configuration
 *
 * @module app/configuration/index
 * @exports app/configuration/index
 * @version 0.0.1
 */

window.angular && (function (angular) {
    'use strict';

    angular
        .module('app.configuration', [
            'ngRoute',
            'app.constants',
            'app.common.services'
        ])
        // Route configuration
        .config(['$routeProvider', function ($routeProvider) {
            $routeProvider
                .when('/configuration/network', {
                    'template': require('./controllers/network-controller.html'),
                    'controller': 'networkController',
                    authenticated: true
                })
                .when('/configuration/security', {
                    'template': require('./controllers/security-controller.html'),
                    'controller': 'securityController',
                    authenticated: true
                }).when('/configuration/date-time', {
                    'template': require('./controllers/date-time-controller.html'),
                    'controller': 'dateTimeController',
                    authenticated: true
                })
                .when('/configuration/file', {
                    'template': require('./controllers/file-controller.html'),
                    'controller': 'fileController',
                    authenticated: true
                }).when('/configuration', {
                    'template': require('./controllers/network-controller.html'),
                    'controller': 'networkController',
                    authenticated: true
                }).when('/configuration/firmware', {
                'template': require('./controllers/firmware-controller.html'),
                'controller': 'firmwareController',
                authenticated: true
            });
        }]);

})(window.angular);
OpenPOWER on IntegriCloud