summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 16:05:26 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 16:05:26 +0300
commitb3151828e74346f54b20711593829191b1a7a829 (patch)
tree892e40bc3783d6a84f5aed53718ff4d407418a3c /config/routes.rb
parentf223a41660f1a629614d3d559468b1a5488b96d8 (diff)
downloadgitlab-ce-b3151828e74346f54b20711593829191b1a7a829.tar.gz
Put user keys routing back below project routing
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c364a963fb7..75bc551feb5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -145,5 +145,8 @@ Rails.application.routes.draw do
get ':id' => 'namespaces#show', constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ }
+ # Get all keys of user
+ get ':username.keys' => 'profiles/keys#get_keys', constraints: { username: /.*/ }
+
root to: "root#index"
end