diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-05 15:21:27 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-05 15:21:27 +0300 |
commit | f223a41660f1a629614d3d559468b1a5488b96d8 (patch) | |
tree | f253bba0103d951980811f0563bc7c07657d2fdc /config/routes/explore.rb | |
parent | 3fd5ea3d4362e6946f8502bb30825cc14013b374 (diff) | |
download | gitlab-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.rb | 16 |
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' |