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']);