mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-25 09:26:15 +08:00
new routes for endpoints
This commit is contained in:
parent
e64aee5db0
commit
2d3f5f2377
|
@ -540,7 +540,7 @@ Rails.application.routes.draw do
|
||||||
get 'health', to: 'api#health'
|
get 'health', to: 'api#health'
|
||||||
get 'status', to: 'api#status'
|
get 'status', to: 'api#status'
|
||||||
post 'auth/token', to: 'api#authenticate'
|
post 'auth/token', to: 'api#authenticate'
|
||||||
if Api.configuration.core_api_v1_preview
|
#if Api.configuration.core_api_v1_preview
|
||||||
namespace :v1 do
|
namespace :v1 do
|
||||||
resources :teams, only: %i(index show) do
|
resources :teams, only: %i(index show) do
|
||||||
resources :inventories,
|
resources :inventories,
|
||||||
|
@ -559,7 +559,32 @@ Rails.application.routes.draw do
|
||||||
resources :my_modules,
|
resources :my_modules,
|
||||||
only: %i(index show),
|
only: %i(index show),
|
||||||
path: 'tasks',
|
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,
|
resources :my_module_groups,
|
||||||
only: %i(index show),
|
only: %i(index show),
|
||||||
path: 'task_groups',
|
path: 'task_groups',
|
||||||
|
@ -575,7 +600,7 @@ Rails.application.routes.draw do
|
||||||
only: %i(index create show update destroy)
|
only: %i(index create show update destroy)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
#end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue