Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-10-11 19:28:00 +0300
committerBryce Johnson <bryce@gitlab.com>2016-10-15 09:28:55 +0300
commit568a405ce43834d5b4da3ff81f1e8a6972db802b (patch)
tree45376ca73314f6ea7d22c37da2dc22436f6e6d8c /config/routes/user.rb
parent5439bd9f952c7e7ee9fa10613655a9761396e1f9 (diff)
Add exists to users routes and fix endpoint.
Diffstat (limited to 'config/routes/user.rb')
-rw-r--r--config/routes/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes/user.rb b/config/routes/user.rb
index 54bbcb18f6a..dfb5d2a2ba4 100644
--- a/config/routes/user.rb
+++ b/config/routes/user.rb
@@ -33,5 +33,6 @@ scope(path: 'u/:username',
get :projects
get :contributed, as: :contributed_projects
get :snippets
+ get :exists
get '/', to: redirect('/%{username}')
end