mirror of https://github.com/grafana/grafana
parent
39f3cfc1eb
commit
d1e33ec071
@ -1,7 +0,0 @@ |
||||
define([ |
||||
'./dashboard-from-db', |
||||
'./dashboard-from-file', |
||||
'./dashboard-from-script', |
||||
'./dashboard-default', |
||||
], |
||||
function () {}); |
||||
@ -1,20 +0,0 @@ |
||||
define([ |
||||
'angular', |
||||
'config', |
||||
'store' |
||||
], |
||||
function (angular, config, store) { |
||||
"use strict"; |
||||
|
||||
var module = angular.module('grafana.routes'); |
||||
|
||||
module.config(function($routeProvider) { |
||||
$routeProvider |
||||
.when('/', { |
||||
redirectTo: function() { |
||||
return store.get('grafanaDashboardDefault') || config.default_route; |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
}); |
||||
@ -0,0 +1,23 @@ |
||||
define([ |
||||
'angular', |
||||
'config', |
||||
'store', |
||||
'./fromDB', |
||||
'./fromFile', |
||||
'./fromScript', |
||||
], |
||||
function (angular, config, store) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('grafana.routes'); |
||||
|
||||
module.config(function($routeProvider) { |
||||
$routeProvider |
||||
.when('/', { |
||||
redirectTo: function() { |
||||
return store.get('grafanaDashboardDefault') || config.default_route; |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
}); |
||||
Loading…
Reference in new issue