diff options
author | Christopher Baines <mail@cbaines.net> | 2018-05-03 21:22:59 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-05-03 21:22:59 +0100 |
commit | 38a8dd800d27e3ee054eab50bb218b094530e5f8 (patch) | |
tree | ec7a29bd11d64d6012715527f7b8e8b765ae4b7d /config | |
parent | ef74e10de2a27fef0a39ebee2e4c0b503689c0f1 (diff) | |
download | govuk-mini-environment-admin-38a8dd800d27e3ee054eab50bb218b094530e5f8.tar govuk-mini-environment-admin-38a8dd800d27e3ee054eab50bb218b094530e5f8.tar.gz |
Display the style guide during development
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index cb7a20c..42883a4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -43,6 +43,10 @@ Rails.application.routes.draw do delete '*state_id', to: 'terraform_http_backend#destroy', format: false end + if Rails.env.development? + mount GovukAdminTemplate::Engine, at: "/style-guide" + end + resources :mini_environments, path: '/' do post '/', to: 'mini_environments#perform_action', as: 'perform_action' end |