From 4282a037836b24a5bde147143aaa47560359f70b Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Thu, 20 Aug 2020 13:13:11 -0400 Subject: [PATCH] chore: Remove duplicated projects routes --- ui/core/app/router.js | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/ui/core/app/router.js b/ui/core/app/router.js index a14c71087..4243d97b5 100644 --- a/ui/core/app/router.js +++ b/ui/core/app/router.js @@ -22,7 +22,12 @@ Router.map(function () { this.route('project', { path: ':project_id' }, function() { this.route('host-catalogs', function() { this.route('new'); - this.route('host-catalog', { path: ':host_catalog_id' }, function() {}); + this.route('host-catalog', { path: ':host_catalog_id' }, function() { + this.route('host-sets', function() { + this.route('host-set', { path: ':host_set_id' }, function() {}); + this.route('new'); + }); + }); }); }); this.route('new'); @@ -46,20 +51,6 @@ Router.map(function () { this.route('new'); }); - this.route('projects', function() { - this.route('project', { path: ':project_id' }, function() { - this.route('host-catalogs', function() { - this.route('new'); - this.route('host-catalog', { path: ':host_catalog_id' }, function() { - this.route('host-sets', function() { - this.route('host-set', { path: ':host_set_id' }, function() {}); - this.route('new'); - }); - }); - }); - }); - this.route('new'); - }); this.route('auth-methods', function() { this.route('auth-method', { path: ':auth_method_id' }, function() {}); this.route('new');