2016-10-05 08:21:27 -04:00
|
|
|
resource :dashboard, controller: 'dashboard', only: [] do
|
|
|
|
get :issues
|
|
|
|
get :merge_requests
|
|
|
|
get :activity
|
|
|
|
|
|
|
|
scope module: :dashboard do
|
2017-06-08 12:43:05 -04:00
|
|
|
resources :milestones, only: [:index, :show] do
|
|
|
|
member do
|
|
|
|
get :merge_requests
|
|
|
|
get :participants
|
|
|
|
get :labels
|
|
|
|
end
|
|
|
|
end
|
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
|