aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-02-18 11:23:41 +0000
committerChristopher Baines <mail@cbaines.net>2018-03-29 07:41:09 +0100
commitbc1ffc5214ab3f563b60523d9c349fab7974e634 (patch)
tree1caa1ed8bf2fb96c4d340aeffd53cd50a8799980 /config
parent700b8b0a112fa976b9850418a7f0c71d95b6dd79 (diff)
downloadgovuk-mini-environment-admin-bc1ffc5214ab3f563b60523d9c349fab7974e634.tar
govuk-mini-environment-admin-bc1ffc5214ab3f563b60523d9c349fab7974e634.tar.gz
Add some govuk-guix related jobs
And various other views and routes.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/action_view.rb1
-rw-r--r--config/routes.rb15
2 files changed, 15 insertions, 1 deletions
diff --git a/config/initializers/action_view.rb b/config/initializers/action_view.rb
new file mode 100644
index 0000000..142d382
--- /dev/null
+++ b/config/initializers/action_view.rb
@@ -0,0 +1 @@
+Rails.application.config.action_view.form_with_generates_remote_forms = false
diff --git a/config/routes.rb b/config/routes.rb
index 0dcd800..06470d3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,5 +5,18 @@ Rails.application.routes.draw do
controller: :terraform_http_backend,
except: %i[new edit update]
- resources :mini_environments, path: '/'
+ resources :mini_environments, path: '/' do
+ post '/', to: 'mini_environments#perform_action', as: 'perform_action'
+ end
+
+ namespace :govuk_guix do
+ get 'revisions', to: 'revisions#index'
+ end
+
+ resources :que_jobs, only: [] do
+ member do
+ post 'cancel'
+ post 'retry_now'
+ end
+ end
end