debian-mirror-gitlab/config/routes/dashboard.rb

39 lines
854 B
Ruby
Raw Normal View History

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
2017-09-10 17:25:29 +05:30
resources :milestones, only: [:index, :show] do
member do
get :merge_requests
get :participants
get :labels
end
end
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