2016-11-03 12:29:30 +05:30
|
|
|
resource :dashboard, controller: 'dashboard', only: [] do
|
2018-11-08 19:23:39 +05:30
|
|
|
get :issues, action: :issues_calendar, constraints: lambda { |req| req.format == :ics }
|
2016-11-03 12:29:30 +05:30
|
|
|
get :issues
|
|
|
|
get :merge_requests
|
|
|
|
get :activity
|
|
|
|
|
|
|
|
scope module: :dashboard do
|
2020-06-23 00:09:42 +05:30
|
|
|
resources :milestones, only: [:index]
|
2016-11-03 12:29:30 +05:30
|
|
|
resources :labels, only: [:index]
|
|
|
|
|
|
|
|
resources :groups, only: [:index]
|
|
|
|
resources :snippets, only: [:index]
|
|
|
|
|
|
|
|
resources :todos, only: [:index, :destroy] do
|
|
|
|
collection do
|
|
|
|
delete :destroy_all
|
2017-08-17 22:00:37 +05:30
|
|
|
patch :bulk_restore
|
|
|
|
end
|
|
|
|
member do
|
|
|
|
patch :restore
|
2016-11-03 12:29:30 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :projects, only: [:index] do
|
|
|
|
collection do
|
|
|
|
get :starred
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
root to: "dashboard/projects#index"
|
|
|
|
end
|