diff options
Diffstat (limited to 'config/routes/explore.rb')
-rw-r--r-- | config/routes/explore.rb | 5 |
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 |