'use strict'; angular.module('warehost', [ 'ngSanitize', 'ui.router', 'ui.bootstrap', 'ui.select', 'ui.tree', 'hc.marked', 'angular-markdown-editor', 'ngTable', 'config', 'session', 'alert' ]) .config(['$urlRouterProvider','$httpProvider','markedProvider',function($urlRouterProvider,$httpProvider,markedProvider){ $urlRouterProvider.otherwise('/'); $httpProvider.defaults.withCredentials = true; // marked config markedProvider.setOptions({ gfm: true, tables: true, sanitize: true }); // highlight config //hljsServiceProvider.setOptions({}); }]).run(function(session,config,$http) { $http.get(config.api+'/status').then(function(res){ session.set(res); }); });