blob: 1ac41624580ce5e6c36be9ed2a8c28b7c3860e19 [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
Gunnar Mills2b9a0d92018-07-11 15:10:08 -050012 .module('app.configuration', ['ngRoute', 'app.common.services'])
Andrew Geisslerd27bb132018-05-24 11:07:27 -070013 // Route configuration
14 .config([
15 '$routeProvider',
16 function($routeProvider) {
17 $routeProvider
18 .when('/configuration/network', {
19 'template': require('./controllers/network-controller.html'),
20 'controller': 'networkController',
21 authenticated: true
22 })
23 .when('/configuration/security', {
24 'template': require('./controllers/security-controller.html'),
25 'controller': 'securityController',
26 authenticated: true
27 })
28 .when('/configuration/date-time', {
29 'template': require('./controllers/date-time-controller.html'),
30 'controller': 'dateTimeController',
31 authenticated: true
32 })
33 .when('/configuration/file', {
34 'template': require('./controllers/file-controller.html'),
35 'controller': 'fileController',
36 authenticated: true
37 })
38 .when('/configuration', {
39 'template': require('./controllers/network-controller.html'),
40 'controller': 'networkController',
41 authenticated: true
42 })
43 .when('/configuration/firmware', {
44 'template': require('./controllers/firmware-controller.html'),
45 'controller': 'firmwareController',
46 authenticated: true
47 });
48 }
49 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050050
51})(window.angular);