Browse Source

dynamic routes for specific new pages

CLDC-1324
JG 2 years ago committed by Kat
parent
commit
a6fc8afe7b
  1. 8
      config/routes.rb

8
config/routes.rb

@ -28,7 +28,13 @@ Rails.application.routes.draw do
root to: "start#index" root to: "start#index"
get "/logs", to: redirect("/lettings-logs") get "/logs", to: redirect("/lettings-logs")
get "/logs/new/organisation", to: "form#show_new_page"
FormHandler.instance.forms.each do |_key, form|
form.pages.map do |page|
get "/logs/new/#{page.id.to_s.dasherize}", to: "form#show_new_page"
end
end
get "/accessibility-statement", to: "content#accessibility_statement" get "/accessibility-statement", to: "content#accessibility_statement"
get "/privacy-notice", to: "content#privacy_notice" get "/privacy-notice", to: "content#privacy_notice"
get "/data-sharing-agreement", to: "content#data_sharing_agreement" get "/data-sharing-agreement", to: "content#data_sharing_agreement"

Loading…
Cancel
Save