Skip to content

Commit 82ec26f

Browse files
authored
Merge pull request #730 from alphagov/2154-allow-form-creators-to-add-an-exit-page-to-a-route
Permit exit page heading and markdown for condition endpoint
2 parents fada3ae + 8b7e12c commit 82ec26f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/controllers/api/v1/conditions_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def condition_params
5757
:goto_page_id,
5858
:skip_to_end,
5959
:answer_value,
60+
:exit_page_heading,
61+
:exit_page_markdown,
6062
)
6163
end
6264

spec/requests/api/v1/conditions_controller_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
goto_page_id: goto_page.id,
4141
skip_to_end: false,
4242
answer_value: "hello",
43+
exit_page_heading: nil,
44+
exit_page_markdown: nil,
4345
}
4446
end
4547

0 commit comments

Comments
 (0)