made it possible to have frontend code in symlinked folders that can add routes

This commit is contained in:
Torkel Ödegaard
2018-10-11 12:36:04 +02:00
parent 5b46c08844
commit abef94b0da
10 changed files with 36 additions and 92 deletions

View File

@@ -1,6 +1,6 @@
import './dashboard_loaders';
import './ReactContainer';
import '../extensions';
import { applyRouteRegistrationHandlers } from './registry';
import ServerStats from 'app/features/admin/ServerStats';
import AlertRuleList from 'app/features/alerting/AlertRuleList';
@@ -226,11 +226,6 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
component: () => ServerStats,
},
})
.when('/admin/licensing', {
templateUrl: 'public/app/features/admin/partials/licensing.html',
controller: 'AdminLicensingCtrl',
controllerAs: 'ctrl',
})
// LOGIN / SIGNUP
.when('/login', {
templateUrl: 'public/app/partials/login.html',
@@ -312,4 +307,6 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
templateUrl: 'public/app/partials/error.html',
controller: 'ErrorCtrl',
});
applyRouteRegistrationHandlers($routeProvider);
}