2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
get :issues, to: 'issues#calendar', constraints: lambda { |req| req.format == :ics }
|
|
|
|
|
|
|
|
resources :issues, concerns: :awardable, constraints: { id: /\d+/ } do
|
|
|
|
member do
|
|
|
|
post :toggle_subscription
|
|
|
|
post :mark_as_spam
|
|
|
|
post :move
|
|
|
|
put :reorder
|
|
|
|
get :related_branches
|
|
|
|
get :can_create_branch
|
|
|
|
get :realtime_changes
|
|
|
|
post :create_merge_request
|
|
|
|
get :discussions, format: :json
|
2020-05-24 23:13:21 +05:30
|
|
|
get '/designs(/*vueroute)', to: 'issues#designs', as: :designs, format: false
|
2023-05-27 22:25:52 +05:30
|
|
|
get '/:incident_tab',
|
|
|
|
action: :show,
|
|
|
|
as: :incident_issue,
|
|
|
|
constraints: { incident_tab: /timeline|metrics|alerts/ }
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
collection do
|
2020-07-28 23:09:34 +05:30
|
|
|
get :service_desk
|
2020-03-13 15:44:24 +05:30
|
|
|
post :bulk_update
|
|
|
|
post :import_csv
|
2020-04-22 19:07:51 +05:30
|
|
|
post :export_csv
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
scope :incident do
|
2023-05-27 22:25:52 +05:30
|
|
|
get '/:id(/:incident_tab)',
|
2023-04-23 21:23:45 +05:30
|
|
|
to: 'incidents#show',
|
2023-05-27 22:25:52 +05:30
|
|
|
as: :incident,
|
|
|
|
constraints: { incident_tab: /timeline|metrics|alerts/ }
|
2023-04-23 21:23:45 +05:30
|
|
|
end
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
2020-11-24 15:15:51 +05:30
|
|
|
|
|
|
|
resources :issue_links, only: [:index, :create, :destroy], as: 'links', path: 'links'
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|