Commit b0cf35b2 authored by Hervé Ménager's avatar Hervé Ménager

handle website not available (MongoDB not started), client-side.

parent c34f284f
......@@ -18,7 +18,16 @@ angular.module('biowebEvolApp', [
return $sce.trustAsHtml(text);
}
})
.config(function($routeProvider, $locationProvider, AngularyticsProvider) {
.config(function($routeProvider, $locationProvider, AngularyticsProvider, $httpProvider) {
$httpProvider.interceptors.push(function($rootScope) {
return {
'responseError': function (rejection) {
if(rejection.status===503){
$rootScope.message = "This website is currently unavailable";
}
}
}
});
AngularyticsProvider.setEventHandlers(['Console', 'GoogleUniversal']);
$routeProvider
.when('/welcome', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment