diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 18:19:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 18:19:03 +0300 |
commit | 14bd84b61276ef29b97d23642d698de769bacfd2 (patch) | |
tree | f9eba90140c1bd874211dea17750a0d422c04080 /config/routes/issues.rb | |
parent | 891c388697b2db0d8ee0c8358a9bdbf6dc56d581 (diff) |
Add latest changes from gitlab-org/gitlab@15-10-stable-eev15.10.0-rc42
Diffstat (limited to 'config/routes/issues.rb')
-rw-r--r-- | config/routes/issues.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/routes/issues.rb b/config/routes/issues.rb index 25e59022272..13fdde5841b 100644 --- a/config/routes/issues.rb +++ b/config/routes/issues.rb @@ -14,6 +14,10 @@ resources :issues, concerns: :awardable, constraints: { id: /\d+/ } do post :create_merge_request get :discussions, format: :json get '/designs(/*vueroute)', to: 'issues#designs', as: :designs, format: false + get '/:incident_tab', + action: :show, + as: :incident_issue, + constraints: { incident_tab: /timeline|metrics|alerts/ } end collection do @@ -23,9 +27,10 @@ resources :issues, concerns: :awardable, constraints: { id: /\d+/ } do post :export_csv scope :incident do - get '/:id', + get '/:id(/:incident_tab)', to: 'incidents#show', - as: :incident + as: :incident, + constraints: { incident_tab: /timeline|metrics|alerts/ } end end |