2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-10-05 08:21:27 -04:00
|
|
|
resource :dashboard, controller: 'dashboard', only: [] do
|
2018-05-31 10:01:04 -04:00
|
|
|
get :issues, action: :issues_calendar, constraints: lambda { |req| req.format == :ics }
|
2016-10-05 08:21:27 -04:00
|
|
|
get :issues
|
|
|
|
get :merge_requests
|
|
|
|
get :activity
|
|
|
|
|
|
|
|
scope module: :dashboard do
|
2020-05-28 08:08:10 -04:00
|
|
|
resources :milestones, only: [:index]
|
2016-10-05 08:21:27 -04:00
|
|
|
resources :labels, only: [:index]
|
|
|
|
|
|
|
|
resources :groups, only: [:index]
|
|
|
|
resources :snippets, only: [:index]
|
|
|
|
|
|
|
|
resources :todos, only: [:index, :destroy] do
|
|
|
|
collection do
|
|
|
|
delete :destroy_all
|
2017-01-29 04:44:30 -05:00
|
|
|
patch :bulk_restore
|
2016-10-05 08:21:27 -04:00
|
|
|
end
|
2017-01-16 08:11:08 -05:00
|
|
|
member do
|
|
|
|
patch :restore
|
|
|
|
end
|
2016-10-05 08:21:27 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
resources :projects, only: [:index] do
|
|
|
|
collection do
|
|
|
|
get :starred
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
root to: "dashboard/projects#index"
|
|
|
|
end
|