22 lines
469 B
JavaScript
22 lines
469 B
JavaScript
'use strict';
|
|
|
|
angular.module('warehost', [
|
|
'ngSanitize',
|
|
'ui.router',
|
|
'ui.bootstrap',
|
|
'ui.select',
|
|
'ui.tree',
|
|
'ngTable',
|
|
'config',
|
|
'session',
|
|
'alert'
|
|
])
|
|
.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);
|
|
});
|
|
});
|