From 6e99eed417acb9279feefdb4d2ea6cedd39116bf Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Tue, 19 Jan 2016 17:00:54 -0800 Subject: [PATCH] Moved snapshot route to core routes --- public/app/core/routes/all.js | 4 ++++ public/app/features/snapshot/all.js | 1 - .../app/features/snapshot/snapshot_routes.js | 18 ------------------ 3 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 public/app/features/snapshot/snapshot_routes.js diff --git a/public/app/core/routes/all.js b/public/app/core/routes/all.js index cc4d73ef708..ba993134455 100644 --- a/public/app/core/routes/all.js +++ b/public/app/core/routes/all.js @@ -132,6 +132,10 @@ define([ templateUrl: 'app/partials/reset_password.html', controller : 'ResetPasswordCtrl', }) + .when('/dashboard/snapshots', { + templateUrl: 'app/features/snapshot/partials/snapshots.html', + controller : 'SnapshotsCtrl' + }) .when('/apps', { templateUrl: 'app/features/apps/partials/list.html', controller: 'AppListCtrl', diff --git a/public/app/features/snapshot/all.js b/public/app/features/snapshot/all.js index 45cb9eb594f..b0f66edc414 100644 --- a/public/app/features/snapshot/all.js +++ b/public/app/features/snapshot/all.js @@ -1,4 +1,3 @@ define([ './snapshot_ctrl', - './snapshot_routes' ], function () {}); diff --git a/public/app/features/snapshot/snapshot_routes.js b/public/app/features/snapshot/snapshot_routes.js deleted file mode 100644 index 74de0634282..00000000000 --- a/public/app/features/snapshot/snapshot_routes.js +++ /dev/null @@ -1,18 +0,0 @@ -define([ - 'angular', - 'app/core/config', - 'lodash' -], -function (angular) { - 'use strict'; - - var module = angular.module('grafana.routes'); - - module.config(function($routeProvider) { - $routeProvider - .when('/dashboard/snapshots', { - templateUrl: 'app/features/snapshot/partials/snapshots.html', - controller : 'SnapshotsCtrl' - }); - }); -});