diff --git a/config/routes.rb b/config/routes.rb index 12e996fcc..09be8a3cd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,7 +28,13 @@ Rails.application.routes.draw do root to: "start#index" 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 "/privacy-notice", to: "content#privacy_notice" get "/data-sharing-agreement", to: "content#data_sharing_agreement"