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( 13 'app.configuration', 14 ['ngRoute', 'app.constants', 'app.common.services']) 15 // Route configuration 16 .config([ 17 '$routeProvider', 18 function($routeProvider) { 19 $routeProvider 20 .when('/configuration/network', { 21 'template': require('./controllers/network-controller.html'), 22 'controller': 'networkController', 23 authenticated: true 24 }) 25 .when('/configuration/security', { 26 'template': require('./controllers/security-controller.html'), 27 'controller': 'securityController', 28 authenticated: true 29 }) 30 .when('/configuration/date-time', { 31 'template': require('./controllers/date-time-controller.html'), 32 'controller': 'dateTimeController', 33 authenticated: true 34 }) 35 .when('/configuration/file', { 36 'template': require('./controllers/file-controller.html'), 37 'controller': 'fileController', 38 authenticated: true 39 }) 40 .when('/configuration', { 41 'template': require('./controllers/network-controller.html'), 42 'controller': 'networkController', 43 authenticated: true 44 }) 45 .when('/configuration/firmware', { 46 'template': require('./controllers/firmware-controller.html'), 47 'controller': 'firmwareController', 48 authenticated: true 49 }); 50 } 51 ]); 52 53})(window.angular); 54