summaryrefslogtreecommitdiff
path: root/config/routes/explore.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/explore.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/explore.rb')
-rw-r--r--config/routes/explore.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/routes/explore.rb b/config/routes/explore.rb
new file mode 100644
index 00000000000..42ec5e8abec
--- /dev/null
+++ b/config/routes/explore.rb
@@ -0,0 +1,16 @@
+namespace :explore do
+ resources :projects, only: [:index] do
+ collection do
+ get :trending
+ get :starred
+ end
+ end
+
+ resources :groups, only: [:index]
+ resources :snippets, only: [:index]
+ root to: 'projects#trending'
+end
+
+# Compatibility with old routing
+get 'public' => 'explore/projects#index'
+get 'public/projects' => 'explore/projects#index'