# HG changeset patch # User Daniel Dourvaris # Date 2016-06-03 12:36:04 # Node ID 0dafa7a7d29fb4cf8422080b99c12c9bfabbe75b # Parent d24c04eb52b4eac34e866f77830f100d61025e87 cleanup: remove duplicate route diff --git a/rhodecode/config/routing.py b/rhodecode/config/routing.py --- a/rhodecode/config/routing.py +++ b/rhodecode/config/routing.py @@ -580,8 +580,6 @@ def make_map(config): action='index', conditions={'method': ['GET']}) m.connect('new_gist', '/gists/new', jsroute=True, action='new', conditions={'method': ['GET']}) - m.connect('gists', '/gists', jsroute=True, - action='index', conditions={'method': ['GET']}) m.connect('/gists/{gist_id}', action='delete', conditions={'method': ['DELETE']}) diff --git a/rhodecode/public/js/rhodecode/routes.js b/rhodecode/public/js/rhodecode/routes.js --- a/rhodecode/public/js/rhodecode/routes.js +++ b/rhodecode/public/js/rhodecode/routes.js @@ -17,7 +17,6 @@ function registerRCRoutes() { pyroutes.register('edit_user_group_members', '/_admin/user_groups/%(user_group_id)s/edit/members', ['user_group_id']); pyroutes.register('gists', '/_admin/gists', []); pyroutes.register('new_gist', '/_admin/gists/new', []); - pyroutes.register('gists', '/_admin/gists', []); pyroutes.register('toggle_following', '/_admin/toggle_following', []); pyroutes.register('repo_stats', '/%(repo_name)s/repo_stats/%(commit_id)s', ['repo_name', 'commit_id']); pyroutes.register('repo_refs_data', '/%(repo_name)s/refs-data', ['repo_name']);