Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issues.rb « routes « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13fdde5841b32780ec0e69ddc72341aac9fe91f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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
    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
    get :service_desk
    post :bulk_update
    post :import_csv
    post :export_csv

    scope :incident do
      get '/:id(/:incident_tab)',
        to: 'incidents#show',
        as: :incident,
        constraints: { incident_tab: /timeline|metrics|alerts/ }
    end
  end

  resources :issue_links, only: [:index, :create, :destroy], as: 'links', path: 'links'
end