mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
fixed hound
This commit is contained in:
parent
6a4801466d
commit
87d072537b
2 changed files with 38 additions and 37 deletions
|
@ -6,7 +6,8 @@ module Api
|
|||
type :results
|
||||
attributes :id, :name, :my_module_id, :user_id, :created_at, :updated_at,
|
||||
:archived, :archived_on, :last_modified_by_id, :archived_by_id,
|
||||
:restored_by_id, :restored_on, :result_text, :result_table, :result_asset
|
||||
:restored_by_id, :restored_on, :result_text, :result_table,
|
||||
:result_asset
|
||||
|
||||
belongs_to :my_module, serializer: MyModuleSerializer
|
||||
end
|
||||
|
|
|
@ -557,44 +557,44 @@ Rails.application.routes.draw do
|
|||
resources :projects, only: %i(index show) do
|
||||
resources :experiments, only: %i(index show) do
|
||||
resources :my_modules,
|
||||
only: %i(index show),
|
||||
path: '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
|
||||
get 'inputs',
|
||||
to: 'my_modules#inputs'
|
||||
get 'inputs/:id',
|
||||
to: 'my_modules#input'
|
||||
get 'outputs',
|
||||
to: 'my_modules#outputs'
|
||||
get 'outputs/:id',
|
||||
to: 'my_modules#output'
|
||||
resources :activities, only: %i(index show),
|
||||
path: 'activities',
|
||||
as: :activities
|
||||
end
|
||||
only: %i(index show),
|
||||
path: '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
|
||||
get 'inputs',
|
||||
to: 'my_modules#inputs'
|
||||
get 'inputs/:id',
|
||||
to: 'my_modules#input'
|
||||
get 'outputs',
|
||||
to: 'my_modules#outputs'
|
||||
get 'outputs/:id',
|
||||
to: 'my_modules#output'
|
||||
resources :activities, only: %i(index show),
|
||||
path: 'activities',
|
||||
as: :activities
|
||||
end
|
||||
resources :my_module_groups,
|
||||
only: %i(index show),
|
||||
path: 'task_groups',
|
||||
as: :task_groups
|
||||
only: %i(index show),
|
||||
path: 'task_groups',
|
||||
as: :task_groups
|
||||
resources :connections,
|
||||
only: %i(index show),
|
||||
path: 'connections',
|
||||
as: :connections
|
||||
only: %i(index show),
|
||||
path: 'connections',
|
||||
as: :connections
|
||||
end
|
||||
end
|
||||
resources :users, only: %i(show) do
|
||||
|
|
Loading…
Reference in a new issue