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