17 lines
406 B
JavaScript
17 lines
406 B
JavaScript
|
'use strict';
|
||
|
|
||
|
angular.module('warehost', [
|
||
|
'ui.router',
|
||
|
'ui.bootstrap',
|
||
|
'config',
|
||
|
'session'
|
||
|
])
|
||
|
.config(['$urlRouterProvider','$httpProvider',function($urlRouterProvider,$httpProvider){
|
||
|
$urlRouterProvider.otherwise('/');
|
||
|
$httpProvider.defaults.withCredentials = true;
|
||
|
}]).run(function(session,config,$http) {
|
||
|
$http.get(config.api+'/status').then(function(res){
|
||
|
session.set(res);
|
||
|
});
|
||
|
});
|