diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-06-13 00:13:42 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-06-13 00:13:42 +0400 |
commit | edd81a79c5c2a61e565664cfa787185c4e19729b (patch) | |
tree | 697e212f910ea9f6bc08f91065cf90a68afc44a7 /config/routes.rb | |
parent | 9ef9c58f55e2613910623e66205df402f2a89f14 (diff) |
Dashboard refactoring:
* dashboard should be in dashboard controller not project index
* projects index removed
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index e835f58ffad..c3754bc62f9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -33,6 +33,10 @@ Gitlab::Application.routes.draw do end get "errors/githost" + + # + # Profile Area + # get "profile/password", :to => "profile#password" put "profile/password", :to => "profile#password_update" get "profile/token", :to => "profile#token" @@ -41,10 +45,14 @@ Gitlab::Application.routes.draw do get "profile/design", :to => "profile#design" put "profile/update", :to => "profile#update" + # + # Dashboard Area + # + get "dashboard", :to => "dashboard#index" get "dashboard/issues", :to => "dashboard#issues" get "dashboard/merge_requests", :to => "dashboard#merge_requests" - resources :projects, :constraints => { :id => /[^\/]+/ }, :only => [:new, :create, :index] + resources :projects, :constraints => { :id => /[^\/]+/ }, :only => [:new, :create] resources :keys devise_for :users, :controllers => { :omniauth_callbacks => :omniauth_callbacks } @@ -145,5 +153,5 @@ Gitlab::Application.routes.draw do end resources :notes, :only => [:index, :create, :destroy] end - root :to => "projects#index" + root :to => "dashboard#index" end |