Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/explore.rb')
-rw-r--r--config/routes/explore.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes/explore.rb b/config/routes/explore.rb
index 36c2432d0cc..4c7ed505679 100644
--- a/config/routes/explore.rb
+++ b/config/routes/explore.rb
@@ -11,7 +11,10 @@ namespace :explore do
end
resources :groups, only: [:index]
- resources :catalog, only: [:index, :show], constraints: { id: /\d+/ }
+ scope :catalog do
+ get '/' => 'catalog#index', as: :catalog_index
+ get '/*full_path' => 'catalog#show', as: :catalog
+ end
resources :snippets, only: [:index]
root to: 'projects#index'
end