xref: /openbmc/phosphor-webui/app/login/index.js (revision ba5e3f3484c0de46f4f5fc5baf5804648179a9eb)
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