summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-24 11:08:00 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-29 08:24:07 -0500
commitcc9f93f9d26a18a7e867384e1e3cf34a3197ba5c (patch)
tree4ad72747512c4e29cb231cf9ace790f4ab5eb8b0 /config
parentcd391b66e9d480c3143b63d32f893c6a1015f04e (diff)
downloadgitlab-ce-cc9f93f9d26a18a7e867384e1e3cf34a3197ba5c.tar.gz
Add routes and actions for dynamic tab loading
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index a2acf170a6b..e1448d231b5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -332,6 +332,15 @@ Rails.application.routes.draw do
get 'u/:username/calendar_activities' => 'users#calendar_activities', as: :user_calendar_activities,
constraints: { username: /.*/ }
+ get 'u/:username/groups' => 'users#groups', as: :user_groups,
+ constraints: { username: /.*/ }
+
+ get 'u/:username/projects' => 'users#user_projects', as: :user_projects,
+ constraints: { username: /.*/ }
+
+ get 'u/:username/contributed_projects' => 'users#user_contributed_projects', as: :user_contributed_projects,
+ constraints: { username: /.*/ }
+
get '/u/:username' => 'users#show', as: :user,
constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }