blob: 8a1acda0089610d1fdc8e53455f57c8b3e7be0da [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 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070023 .when('/configuration/date-time', {
24 'template': require('./controllers/date-time-controller.html'),
25 'controller': 'dateTimeController',
26 authenticated: true
27 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070028 .when('/configuration', {
29 'template': require('./controllers/network-controller.html'),
30 'controller': 'networkController',
31 authenticated: true
32 })
Gunnar Millsff64c542018-08-24 15:49:09 -050033 .when('/configuration/snmp', {
34 'template': require('./controllers/snmp-controller.html'),
35 'controller': 'snmpController',
36 authenticated: true
37 })
beccabroek44da4712019-03-20 13:24:23 -050038 .when('/configuration/virtual-media', {
39 'template':
40 require('./controllers/virtual-media-controller.html'),
41 'controller': 'virtualMediaController',
42 authenticated: true
43 })
beccabroek309b5da2018-11-07 12:22:31 -060044 .when('/configuration/certificate', {
45 'template':
46 require('./controllers/certificate-controller.html'),
47 'controller': 'certificateController',
48 authenticated: true
49 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070050 .when('/configuration/firmware', {
51 'template': require('./controllers/firmware-controller.html'),
52 'controller': 'firmwareController',
53 authenticated: true
54 });
55 }
56 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050057})(window.angular);