xref: /openbmc/phosphor-webui/app/login/index.js (revision 96d62bcf82d281e4b5e229ab835c6e94e781e4bc)
1/**
2 * A module for the login
3 *
4 * @module app/login/index
5 * @exports app/login/index
6 */
7
8window.angular && (function (angular) {
9    'use strict';
10
11    angular
12        .module('app.login', [
13            'ngRoute',
14            'app.constants',
15            'app.common.services'
16        ])
17        // Route configuration
18        .config(['$routeProvider', function ($routeProvider) {
19            $routeProvider
20                .when('/login', {
21                    'template': require('./controllers/login-controller.html'),
22                    'controller': 'LoginController',
23                    authenticated: false
24                });
25        }]);
26
27})(window.angular);
28