James Feist | e8634e6 | 2018-09-07 14:25:48 -0700 | [diff] [blame] | 1 | /** |
| 2 | * A module for redfish |
| 3 | * |
| 4 | * @module app/redfish/index |
| 5 | * @exports app/redfish/index |
| 6 | */ |
| 7 | |
| 8 | window.angular && (function(angular) { |
| 9 | 'use strict'; |
| 10 | |
| 11 | angular |
| 12 | .module('app.redfish', ['ngRoute', 'app.redfish']) |
| 13 | // Route configuration |
| 14 | .config([ |
| 15 | '$routeProvider', |
| 16 | function($routeProvider) { |
| 17 | $routeProvider.when('/redfish/:path*/', { |
| 18 | 'template': require('./controllers/redfish-controller.html'), |
| 19 | 'controller': 'redfishController', |
| 20 | authenticated: true |
| 21 | }); |
| 22 | } |
| 23 | ]); |
| 24 | })(window.angular); |