xref: /openbmc/phosphor-webui/app/login/index.js (revision 4ddda586452cb65560bba645ef30e92200633405)
199d199f3SIftekharul Islam/**
299d199f3SIftekharul Islam * A module for the login
399d199f3SIftekharul Islam *
499d199f3SIftekharul Islam * @module app/login/index
599d199f3SIftekharul Islam * @exports app/login/index
699d199f3SIftekharul Islam */
799d199f3SIftekharul Islam
899d199f3SIftekharul Islamwindow.angular && (function(angular) {
999d199f3SIftekharul Islam  'use strict';
1099d199f3SIftekharul Islam
1199d199f3SIftekharul Islam  angular
12*2b9a0d91SGunnar Mills      .module('app.login', ['ngRoute', 'app.common.services'])
1399d199f3SIftekharul Islam      // Route configuration
14d27bb135SAndrew Geissler      .config([
15d27bb135SAndrew Geissler        '$routeProvider',
16d27bb135SAndrew Geissler        function($routeProvider) {
17d27bb135SAndrew Geissler          $routeProvider.when('/login', {
18bbcf670aSEd Tanous            'template': require('./controllers/login-controller.html'),
1999d199f3SIftekharul Islam            'controller': 'LoginController',
2099d199f3SIftekharul Islam            authenticated: false
2199d199f3SIftekharul Islam          });
22d27bb135SAndrew Geissler        }
23d27bb135SAndrew Geissler      ]);
2499d199f3SIftekharul Islam})(window.angular);
25