diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-01-08 17:25:09 +0100 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-01-08 17:25:09 +0100 |
commit | e0436005af0d567391031ebbf546877f7f525731 (patch) | |
tree | 7a65d829d33043a0dadd7f8fcda910542e7d2406 /config | |
parent | 2c37ae2f0a7612deb4bf93fb726c98cad60ca0aa (diff) | |
parent | c1e974ed889dd31fbbddfa2daeb1a681043d5aa0 (diff) | |
download | gitlab-ce-e0436005af0d567391031ebbf546877f7f525731.tar.gz |
Merge gitlab.com:gitlab-org/gitlab-ce
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 505b198e222..3d5c70987c8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -52,9 +52,6 @@ Rails.application.routes.draw do API::API.logger Rails.logger mount API::API => '/api' - # Get all keys of user - get ':username.keys' => 'profiles/keys#get_keys' , constraints: { username: /.*/ } - constraint = lambda { |request| request.env['warden'].authenticate? and request.env['warden'].user.admin? } constraints constraint do mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq @@ -687,5 +684,8 @@ Rails.application.routes.draw do end end + # Get all keys of user + get ':username.keys' => 'profiles/keys#get_keys' , constraints: { username: /.*/ } + get ':id' => 'namespaces#show', constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } end |