25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
'use strict';
|
|
|
|
angular.module('warehost', [
|
|
'ui.router',
|
|
'ui.bootstrap',
|
|
'ui.select',
|
|
'ui.tree',
|
|
'textAngular',
|
|
'ngTable',
|
|
'config',
|
|
'session',
|
|
'alert'
|
|
])
|
|
.config(['$urlRouterProvider','$httpProvider',function($urlRouterProvider,$httpProvider){
|
|
$urlRouterProvider.otherwise('/');
|
|
$httpProvider.defaults.withCredentials = true;
|
|
|
|
// highlight config
|
|
//hljsServiceProvider.setOptions({});
|
|
}]).run(function(session,config,$http) {
|
|
$http.get(config.api+'/status').then(function(res){
|
|
session.set(res);
|
|
});
|
|
});
|