diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-05-03 15:15:20 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-05-03 15:15:20 +0000 |
commit | c45e11f1798282e73627cb035dc7ad31c6416ec2 (patch) | |
tree | 5507bfcb455783c85b2ab59e252a6611445162f2 /config/routes | |
parent | 349e423137e2c9bbdb5d77dc9ee37d70242dd1f8 (diff) | |
parent | 471888d60e0d91f4ab75e5d773bd69dee85e6cea (diff) | |
download | gitlab-ce-c45e11f1798282e73627cb035dc7ad31c6416ec2.tar.gz |
Merge branch 'async-milestone-tabs' into 'master'
Load milestone tabs asynchronously
See merge request !10919
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/group.rb | 8 | ||||
-rw-r--r-- | config/routes/project.rb | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index 73f69d76995..7b29e0e807c 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -10,7 +10,13 @@ scope(path: 'groups/*group_id', end resource :avatar, only: [:destroy] - resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create] + resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create] do + member do + get :merge_requests + get :participants + get :labels + end + end resources :labels, except: [:show] do post :toggle_subscription, on: :member diff --git a/config/routes/project.rb b/config/routes/project.rb index 894faeb6188..a15e365cc2f 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -207,6 +207,9 @@ constraints(ProjectUrlConstrainer.new) do member do put :sort_issues put :sort_merge_requests + get :merge_requests + get :participants + get :labels end end |