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/project.rb')
-rw-r--r--config/routes/project.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index e7242f1ecee..8ed8574d0cc 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -343,10 +343,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
get 'alert_management/:id', to: 'alert_management#details', as: 'alert_management_alert'
- get 'work_items/*work_items_path' => 'work_items#index', as: :work_items
- get 'work_items/*work_items_path' => 'work_items#index', as: :work_item
-
- resources :work_items, only: [] do
+ resources :work_items, only: [:show], param: :iid do
collection do
post :import_csv
post 'import_csv/authorize', to: 'work_items#authorize'
@@ -464,7 +461,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace :ml do
resources :experiments, only: [:index, :show, :destroy], controller: 'experiments', param: :iid
resources :candidates, only: [:show, :destroy], controller: 'candidates', param: :iid
- resources :models, only: [:index], controller: 'models'
+ resources :models, only: [:index, :show], controller: 'models', param: :model_id
end
namespace :service_desk do