summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/routes.rb3
-rw-r--r--config/routes/user.rb3
2 files changed, 3 insertions, 3 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
diff --git a/config/routes/user.rb b/config/routes/user.rb
index b6a6a07e3c4..bbb30cedd4d 100644
--- a/config/routes/user.rb
+++ b/config/routes/user.rb
@@ -21,6 +21,3 @@ devise_scope :user do
get '/users/auth/:provider/omniauth_error' => 'omniauth_callbacks#omniauth_error', as: :omniauth_error
get '/users/almost_there' => 'confirmations#almost_there'
end
-
-# Get all keys of user
-get ':username.keys' => 'profiles/keys#get_keys', constraints: { username: /.*/ }