diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/action_view.rb | 1 | ||||
-rw-r--r-- | config/routes.rb | 15 |
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 |