2020-01-28 19:08:58 -05:00
|
|
|
# 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-11 05:09:45 -04:00
|
|
|
get '/designs(/*vueroute)', to: 'issues#designs', as: :designs, format: false
|
2020-01-28 19:08:58 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
collection do
|
2020-07-13 14:09:16 -04:00
|
|
|
get :service_desk
|
2020-01-28 19:08:58 -05:00
|
|
|
post :bulk_update
|
|
|
|
post :import_csv
|
2020-04-21 11:21:10 -04:00
|
|
|
post :export_csv
|
2020-01-28 19:08:58 -05:00
|
|
|
end
|
|
|
|
end
|