Dashboard to resource

This commit is contained in:
Dmitriy Zaporozhets 2013-01-27 12:56:20 +02:00
parent bd3b677b86
commit 6b01196fb2
11 changed files with 45 additions and 32 deletions

View file

@ -118,10 +118,13 @@ Gitlab::Application.routes.draw do
#
# Dashboard Area
#
get "dashboard" => "dashboard#index"
get "dashboard/projects" => "dashboard#projects"
get "dashboard/issues" => "dashboard#issues"
get "dashboard/merge_requests" => "dashboard#merge_requests"
resource :dashboard, controller: "dashboard" do
member do
get :projects
get :issues
get :merge_requests
end
end
#
# Groups Area
@ -285,5 +288,5 @@ Gitlab::Application.routes.draw do
end
end
root to: "dashboard#index"
root to: "dashboard#show"
end