BigW Consortium Gitlab

dashboard.rb 653 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
resource :dashboard, controller: 'dashboard', only: [] do
  get :issues
  get :merge_requests
  get :activity

  scope module: :dashboard do
    resources :milestones, only: [:index, :show]
    resources :labels, only: [:index]

    resources :groups, only: [:index]
    resources :snippets, only: [:index]

    resources :todos, only: [:index, :destroy] do
      collection do
        delete :destroy_all
16
        patch :bulk_restore
17
      end
18 19 20
      member do
        patch :restore
      end
21 22 23 24 25 26 27 28 29 30 31
    end

    resources :projects, only: [:index] do
      collection do
        get :starred
      end
    end
  end

  root to: "dashboard/projects#index"
end