diff --git a/config/routes.rb b/config/routes.rb index c5526946d..424e00b76 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -540,7 +540,7 @@ Rails.application.routes.draw do get 'health', to: 'api#health' get 'status', to: 'api#status' post 'auth/token', to: 'api#authenticate' - if Api.configuration.core_api_v1_preview + #if Api.configuration.core_api_v1_preview namespace :v1 do resources :teams, only: %i(index show) do resources :inventories, @@ -559,7 +559,32 @@ Rails.application.routes.draw do resources :my_modules, only: %i(index show), path: 'tasks', - as: :tasks + as: :tasks do + resources :my_module_repository_rows, only: %i(index show), + path: 'task_inventory_rows', + as: :task_inventory_rows + resources :user_my_modules, only: %i(index show), + path: 'user_tasks', + as: :user_tasks + resources :my_module_tags, only: %i(index show), + path: 'task_tags', + as: :task_tags + resources :protocols, only: %i(index show), + path: 'protocols', + as: :protocols + resources :results, only: %i(index show), + path: 'results', + as: :results + resources :my_module_antecessors, only: %i(index show), + path: 'ancestors', + as: :ancestors + resources :my_modules, only: %i(index show), + path: 'descendants', + as: :descendants + resources :activities, only: %i(index show), + path: 'activities', + as: :activities + end resources :my_module_groups, only: %i(index show), path: 'task_groups', @@ -575,7 +600,7 @@ Rails.application.routes.draw do only: %i(index create show update destroy) end end - end + #end end end end