aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-03 21:22:59 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-03 21:22:59 +0100
commit38a8dd800d27e3ee054eab50bb218b094530e5f8 (patch)
treeec7a29bd11d64d6012715527f7b8e8b765ae4b7d /config
parentef74e10de2a27fef0a39ebee2e4c0b503689c0f1 (diff)
downloadgovuk-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.rb4
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