diff --git a/config/routes.rb b/config/routes.rb index 1d571e21b881865b6bb898e8c73c975d4edad5c0..abd400af1d538256ac37874ca8c53591c8dd2e23 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -143,8 +143,8 @@ Gitlab::Application.routes.draw do end end - match "/u/:username" => "users#show", as: :user, - constraints: {username: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, via: :get + get '/u/:username' => 'users#show', as: :user, + constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } # # Dashboard Area