summaryrefslogtreecommitdiff
path: root/config/routes/dashboard.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 15:21:27 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 15:21:27 +0300
commitf223a41660f1a629614d3d559468b1a5488b96d8 (patch)
treef253bba0103d951980811f0563bc7c07657d2fdc /config/routes/dashboard.rb
parent3fd5ea3d4362e6946f8502bb30825cc14013b374 (diff)
downloadgitlab-ce-f223a41660f1a629614d3d559468b1a5488b96d8.tar.gz
Split routes on multiple filesdz-split-routes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes/dashboard.rb')
-rw-r--r--config/routes/dashboard.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/routes/dashboard.rb b/config/routes/dashboard.rb
new file mode 100644
index 00000000000..fb20c63bc63
--- /dev/null
+++ b/config/routes/dashboard.rb
@@ -0,0 +1,27 @@
+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
+ end
+ end
+
+ resources :projects, only: [:index] do
+ collection do
+ get :starred
+ end
+ end
+ end
+
+ root to: "dashboard/projects#index"
+end