2016-10-05 12:21:27 +00:00
|
|
|
namespace :explore do
|
|
|
|
resources :projects, only: [:index] do
|
|
|
|
collection do
|
|
|
|
get :trending
|
|
|
|
get :starred
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :groups, only: [:index]
|
|
|
|
resources :snippets, only: [:index]
|
2020-01-31 21:08:52 +00:00
|
|
|
root to: 'projects#index'
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Compatibility with old routing
|
|
|
|
get 'public' => 'explore/projects#index'
|
|
|
|
get 'public/projects' => 'explore/projects#index'
|