diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-24 11:08:00 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-29 08:24:07 -0500 |
commit | cc9f93f9d26a18a7e867384e1e3cf34a3197ba5c (patch) | |
tree | 4ad72747512c4e29cb231cf9ace790f4ab5eb8b0 /config | |
parent | cd391b66e9d480c3143b63d32f893c6a1015f04e (diff) | |
download | gitlab-ce-cc9f93f9d26a18a7e867384e1e3cf34a3197ba5c.tar.gz |
Add routes and actions for dynamic tab loading
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 9 |
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)/ } |