diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-24 10:15:13 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-24 10:15:13 +0000 |
commit | b0ed2ff1a69df384a1cb9a184c0528bec1986827 (patch) | |
tree | bc3bfb310f541b9f8cb45724282085f87b586b1a /config | |
parent | 160799ca9b6d6e1695521444d787da78b93feef8 (diff) | |
parent | a12d50c5e5ebba17e6e16d3d628f449caf24b6d2 (diff) | |
download | gitlab-ce-b0ed2ff1a69df384a1cb9a184c0528bec1986827.tar.gz |
Merge branch 'atom-feeds-everywhere' into 'master'
Add project activity atom feed and show atom feed buttons everywhere where applicable.
See merge request !555
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 86939a1d7ea..e059f5830f5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -236,7 +236,7 @@ Gitlab::Application.routes.draw do constraints: { username: /.*/ } get '/u/:username' => 'users#show', as: :user, - constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } + constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } # # Dashboard Area @@ -263,7 +263,7 @@ Gitlab::Application.routes.draw do # # Groups Area # - resources :groups, constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } do + resources :groups, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } do member do get :issues get :merge_requests @@ -295,7 +295,7 @@ Gitlab::Application.routes.draw do # Project Area # resources :namespaces, path: '/', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only: [] do - resources(:projects, constraints: { id: /[a-zA-Z.0-9_\-]+/ }, except: + resources(:projects, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }, except: [:new, :create, :index], path: "/") do member do put :transfer |