Skip to content
Snippets Groups Projects
Commit 5b814f20 authored by Jan Segre's avatar Jan Segre
Browse files

Fixing error 500 on /groups and /teams.

Although these urls do not exist they were being mapped with rails
resources. I've added an exception not to add the index routes. Now they
will yield 404 errors instead of 500 ones when trying to access /groups
or /teams.
parent 74ef297a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -133,7 +133,7 @@ Gitlab::Application.routes.draw do
#
# Groups Area
#
resources :groups, constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} do
resources :groups, constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, except: [:index] do
member do
get :issues
get :merge_requests
Loading
Loading
@@ -146,7 +146,7 @@ Gitlab::Application.routes.draw do
#
# Teams Area
#
resources :teams, constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} do
resources :teams, constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, except: [:index] do
member do
get :issues
get :merge_requests
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment