diff options
Diffstat (limited to 'config/routes/user.rb')
-rw-r--r-- | config/routes/user.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes/user.rb b/config/routes/user.rb index 63329277e33..7af4bf2ac2a 100644 --- a/config/routes/user.rb +++ b/config/routes/user.rb @@ -54,9 +54,12 @@ scope(constraints: { username: Gitlab::PathRegex.root_namespace_route_regex }) d end constraints(::Constraints::UserUrlConstrainer.new) do - # Get all keys of user + # Get all SSH keys of user get ':username.keys' => 'profiles/keys#get_keys', constraints: { username: Gitlab::PathRegex.root_namespace_route_regex } + # Get all GPG keys of user + get ':username.gpg' => 'profiles/gpg_keys#get_keys', constraints: { username: Gitlab::PathRegex.root_namespace_route_regex } + scope(path: ':username', as: :user, constraints: { username: Gitlab::PathRegex.root_namespace_route_regex }, |