diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-28 18:11:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-28 18:11:48 +0300 |
commit | baed745d21710f1d78ece03558873acd6fd7d358 (patch) | |
tree | 628622c816195894985d03ab01f55abe7c6ac7ca /config/routes | |
parent | 22ecb1e3fc02bb923c3e9941b1baa849348a036f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes')
-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 |