Add missing routes update
This commit is contained in:
parent
8b4ffb83ec
commit
12ea9ea1fb
1 changed files with 16 additions and 14 deletions
|
|
@ -11,24 +11,26 @@ Rails.application.routes.draw do
|
||||||
resources :checks
|
resources :checks
|
||||||
resources :link_categories
|
resources :link_categories
|
||||||
resources :links
|
resources :links
|
||||||
resources :reports, shallow: true, except: %i[show] do
|
resources :projects, shallow: true do
|
||||||
resources :pages do
|
resources :reports, except: [:show] do
|
||||||
resources :elements do
|
resources :pages do
|
||||||
resources :success_criteria do
|
resources :elements do
|
||||||
collection do
|
resources :success_criteria do
|
||||||
get "from_checklist", action: :new_from_checklist, as: :new_from_checklist
|
collection do
|
||||||
post "from_checklist", action: :create_from_checklist, as: :create_from_checklist
|
get "from_checklist", action: :new_from_checklist, as: :new_from_checklist
|
||||||
end
|
post "from_checklist", action: :create_from_checklist, as: :create_from_checklist
|
||||||
|
end
|
||||||
|
|
||||||
member do
|
member do
|
||||||
get "edit_comment"
|
get "edit_comment"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
resource :export, only: %i[show]
|
||||||
resource :export, only: %i[show]
|
member do
|
||||||
member do
|
get "(-/:page_id)", action: :show, as: "", constraints: { id: /\d+/ }
|
||||||
get "(-/:page_id)", action: :show, as: "", constraints: { id: /\d+/ }
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue