diff --git a/config/routes.rb b/config/routes.rb index 1d571e21b8..abd400af1d 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