1/** 2 * A module for the configuration 3 * 4 * @module app/configuration/index 5 * @exports app/configuration/index 6 */ 7 8window.angular && (function(angular) { 9 'use strict'; 10 11 angular 12 .module('app.configuration', ['ngRoute', 'app.common.services']) 13 // 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/date-time', { 24 'template': require('./controllers/date-time-controller.html'), 25 'controller': 'dateTimeController', 26 authenticated: true 27 }) 28 .when('/configuration', { 29 'template': require('./controllers/network-controller.html'), 30 'controller': 'networkController', 31 authenticated: true 32 }) 33 .when('/configuration/snmp', { 34 'template': require('./controllers/snmp-controller.html'), 35 'controller': 'snmpController', 36 authenticated: true 37 }) 38 .when('/configuration/virtual-media', { 39 'template': 40 require('./controllers/virtual-media-controller.html'), 41 'controller': 'virtualMediaController', 42 authenticated: true 43 }) 44 .when('/configuration/firmware', { 45 'template': require('./controllers/firmware-controller.html'), 46 'controller': 'firmwareController', 47 authenticated: true 48 }); 49 } 50 ]); 51})(window.angular); 52