sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/app.js

19 lines
428 B
JavaScript

'use strict';
angular.module('warehost', [
'ui.router',
'ui.bootstrap',
'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);
});
});