From 12ea9ea1fb18f23bb5c926f5b054cc15e86d5e7a Mon Sep 17 00:00:00 2001 From: david Date: Sun, 24 Nov 2024 22:37:05 +0100 Subject: [PATCH] Add missing routes update --- config/routes.rb | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index fd5e5e1..7b3bcee 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,24 +11,26 @@ Rails.application.routes.draw do resources :checks resources :link_categories resources :links - resources :reports, shallow: true, except: %i[show] do - resources :pages do - resources :elements do - resources :success_criteria do - collection do - get "from_checklist", action: :new_from_checklist, as: :new_from_checklist - post "from_checklist", action: :create_from_checklist, as: :create_from_checklist - end + resources :projects, shallow: true do + resources :reports, except: [:show] do + resources :pages do + resources :elements do + resources :success_criteria do + collection do + get "from_checklist", action: :new_from_checklist, as: :new_from_checklist + post "from_checklist", action: :create_from_checklist, as: :create_from_checklist + end - member do - get "edit_comment" + member do + get "edit_comment" + end end end end - end - resource :export, only: %i[show] - member do - get "(-/:page_id)", action: :show, as: "", constraints: { id: /\d+/ } + resource :export, only: %i[show] + member do + get "(-/:page_id)", action: :show, as: "", constraints: { id: /\d+/ } + end end end